How to resist recircle between two nodes

Hi Walter,

I want to resist user resist drawing recircle between two nodes as following:
------>
O O
<–X--

Set the GoDocument.ValidCycle property.