I have a set of GraphViz nodes such that:
digraph {
A->B;
A->C;
A->D;
}
But B
, C
, and D
happen sequentially in time!
It would be great if there was some way to indicate the vertical level each node should appear upon (where the number of levels may be unknown beforehand).
Does anyone have thoughts on how to accomplish this?
One option to have a node display on a different rank (vertical level) than an other node is to add invisible edges. Assigning those nodes the same
group
indicates graphviz to lay them out in a straight line if possible.For example:
An other option is to have one vertical line of (invisible) nodes, then force the same rank by defining the nodes of the same rank within the same subgraph with
rank=same
: