I am not sure that Roassal implements such an edge. I tried the same in Roassal2, and although the edge is created, it does not display. It seems that he is creating a line where the beginning and the end are the same point.
As a workaround, you can reuse Bezier strings by specifying a different behavior for this case:
RTDirectedLine>>pointsFrom: from To: to | point mid | from = to ifTrue: [ mid := to * (1 - offset) + (from * offset). point := from + (50 @ 50). ^ Array with: from - (10 @ 0) with: point with: to - (0 @ 10) ] ifFalse: [ mid := to * (1 - offset) + (from * offset). point := from + (mid - from) rightRotated. ^ Array with: from with: point with: to ]
Then you can run in the workspace:
| b | b := RTGraphBuilder new. b nodes size: 20; color: Color gray. b edges directed; connectTo:
You should see this:
http://cdn.imghack.se/images/1aaea2de365d0a16818ec8bcf991348a.png
source share