I’m generating Graphviz diagrams. Specifically, I’m generating directed acyclic graphs, and relying on the resultant top-down layout. My issue is, I’ve been working on the assumption that Graphviz will always display a directed-acyclic graph in a one-directional manner. But now I’ve come across a counterexample, which breaks my application:
One of the lines points upwards! This is super rare. I’ve generated dozens of similarly-complicated diagram, and usually all the arrows point downwards. I can’t actually find any documentation to clarify whether this is expected behaviour though.
So, can anyone tell me:
- Is this expected behaviour, or a bug?
- If it is expected behaviour, is there anything I can do to force Graphviz to always direct edges downwards?
I am leaning towards thinking it is a bug. The reason is that if I add a
minlen=2 attribute to the red line, it doesn’t get respected.