nodes position always not same when draw using dot dormat.

10 views
Skip to first unread message

alanch...@gmail.com

unread,
Apr 9, 2014, 5:14:41 AM4/9/14
to pygraphvi...@googlegroups.com
Hi,

  I had using pygraphviz for my python program, and draw the graph using dot format, i found that the png output is always not same, the nodes position always not same place, not in order that follow my nodes sequence.

below are code i used:

 oDraw = AGraph("dotfile.gv", strict=false, directed=True)
 oDraw.layout("dot")
 oDraw.draw("output.png", format="png")
 oDraw.draw("output.dot", format="xdot")

I found that the sequence in output.dot also not always same, if i keep re-run this convertion.

Please, any help is appreciated.

Thank you.


best regards,
alan
Reply all
Reply to author
Forward
0 new messages