tests/241_0.dot
raw| 1 | // from https://forum.graphviz.org/t/keeping-edges-above-nodes-in-a-digraph/1143 |
| 2 | digraph { |
| 3 | splines=true |
| 4 | { rank=same |
| 5 | 0 [label="(" ] |
| 6 | 1 [label="(" ] |
| 7 | 2 [label=A ] |
| 8 | 3 [label="*" ] |
| 9 | 4 [label=B ] |
| 10 | 5 [label="|" ] |
| 11 | 6 [label=A ] |
| 12 | 7 [label=C ] |
| 13 | 8 [label=")" ] |
| 14 | 9 [label=D ] |
| 15 | 10 [label=")" ] |
| 16 | |
| 17 | 5 -> 6 [style=invis] |
| 18 | |
| 19 | 2:e -> 3:w |
| 20 | 4:e -> 5:w |
| 21 | 6:e -> 7:w |
| 22 | 7:e -> 8:w |
| 23 | 9:e -> 10:w |
| 24 | 0:e -> 1:w [color=red] |
| 25 | 1:e -> 2:w [color=red] |
| 26 | 3:e -> 4:w [color=red] |
| 27 | 8:e -> 9:w [color=red] |
| 28 | 2:ne -> 3:nw [color=red] |
| 29 | 3:sw -> 2:se [color=red] |
| 30 | 1:se -> 6:sw [color=red] |
| 31 | 5:ne -> 8:nw [color=red] |
| 32 | } |
| 33 | } |