pombreda / pydot

Automatically exported from code.google.com/p/pydot
MIT License
0 stars 0 forks source link

Order of nodes and edges #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. read a graph from a dot file
2. add a few edges
3. print (.to_string()) the new graph

What is the expected output? What do you see instead?
The added edges should come in the end of the graph.
Instead, they are mixed with other graph elements.

What version of the product are you using? On what operating system?
pydot 1.0.25; python 2.6.1; mac os x 10.6.7

Please provide any additional information below.

Original issue reported on code.google.com by man...@gmail.com on 11 Jun 2011 at 4:52

GoogleCodeExporter commented 9 years ago
Order is relevant. In order to be able to read & parse a dot file and be able 
to save it so that it produces identical output the order of definition of the 
elements needs to be preserved. That leads to elements read from a file to be 
treated differently than elements added through the API.

Original comment by ero.carr...@gmail.com on 30 Dec 2011 at 12:00