Children order gets reversed with subgraph
I'm using Graphviz to visualize my flowchart where the orders of nodes are sensible (but not strongly). However, the orders get reversed when I use subgraph, which may trouble me in some respects.
Here is an example:
In the first graph, everything works well.
The children orders are b -> c -> d
as I expect.
digraph G {
a -> b;
a -> c;
a -> d;
}
However, when I cluster the children into one group, their orders get reversed and become d -> c -> b
.
digraph G {
subgraph cluster_0 {
b;c;d;
}
a -> b;
a -> c;
a -> d;
}
My expectation is that the nodes can maintain their orders when they are clustered into a group (if not against any layout conflicts).
Or Is there any configuration I missed?