Hi!
In my graph Graphviz aligns nodes in ranks no matter the shape. Is there a way I can influence it, so that nodes with shape=point and shape=diamond (representing bindings) are not forced in the same rank as nodes with shape=box (representing activities)? For example, below you can see that the diamond with label 6 is aligned with activity ‘Load to Vehicle’. It would be better to align it with the other bindings with shape=point and labels 5,4,2, at the place where I have drawn a star.
An observation, I am avoiding using invisible edges because they caused me problems early. I know Graphviz works best without forcing it, so I am looking for an attribute that could help solve this.
Thanks for your support in advance!
graphviz_cnet.dot (26.6 KB)
If you add the following to the graph, it will force all four nodes into the same rank.
{ rank=same
o_7 o_11 o_22 i_6
}
p.s. a few other comments:
- several of the nodes are defined more than once (e.g. “Reschedule Container” and Depart). This is legal but confusing
- Units (inches) will be ignored: height=“0.2in”
- penwidth = None will be ignored
- shape = box is applied to a cluster but will be ignored
- It would be safer to set minlen to an integer instead of a floating point number. minlen=4.0 seems to work, but minlen=4 would be safer.
Noted here. Thanks for the insights!