I am using dot to draw a directed graph. In this graph I want to have the nodes at the same rank to appear in a pre-defined order. Is this possible?
I've only found a hackish solution: add (invisible) constraints to represent ordering.
node1 -> node2 [style=invis]
node2 -> node3 [style=invis]
...
More compact version:
node1 -> node2 -> node3 -> node4 [style=invis]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With