How can I steer the edge to exit the diamond on the right?

I have a simple scatter chart showing how to run tests.

PerformTests; PerformTests<---+ PerformTests -> TestsPassed; | | TestsPassed [shape="diamond"]; v | TestsPassed -> Release [label="Yes"]; TestsPassed | TestsPassed -> FixErrors [label="No"]; Y| N\ | FixErrors -> PerformTests; v FixErrors Release 

The diagram shows square squares for all nodes except TestPassed, which are diamond-shaped. My problem is here. I would like the edge that extends beyond the diamond, for No, to get out of the diamond on the right (east) instead of sloping down-right (southeast).

  What I have What I want ^ ^ / \ / \ < > < >---> \ /\ \ / v \ v 

I saw such a compass_pt in the grammar of points, but I cannot figure out how to use it. I, what I want, and how to do it?

+6
graphviz dot
source share
2 answers

Just add compass_pt :e immediately after the node name in the edge declaration (line 5).

 PerformTests; PerformTests<-----+ PerformTests -> TestsPassed; | | TestsPassed [shape="diamond"]; v N | TestsPassed -> Release [label="Yes"]; TestsPassed --> FixErrors TestsPassed:e -> FixErrors [label="No"]; Y| FixErrors -> PerformTests; v Release 
+8
source share

You can also try using the constraint='false' attribute:

http://martin-loetzsch.de/DOTML/constraint.html

0
source share

All Articles