I thought the order was supposed to be the order of addition to the graph.
But this ticket, https://networkx.lanl.gov/trac/ticket/300 , shows
that isn't true.
I thought this was a Graphviz issue but it could be a Pygraphviz bug too
(which I don't know how to fix).
Aric
I don't think that could work. Pygraphviz stores the data using libcgraph
and the dot file is written by libcgraph too. So there is no way to influence
the output order in the dot file from Pygraphviz.
If libcgraph is supposed to output nodes and edges to the dot file in
the order they were added then there is either a bug in libcgraph or
pygraphviz. If you can reproduce the bug using a little bit of c code
and libcgraph
the Graphviz team might be able to fix it (post bug at graphviz.org).
If it works correctly with a c program then it's a Pygraphviz bug and we should
be able to fix that.
Aric