Setting penatlies/walkability on connections

Hi

I posted an answer in your other question: How to remove connection?