PyDot problem

Hi all.
I use pydot for drawing nework link.
the code is at bottom of mail.
i have a png like this attached
If you look png you can see that
10.0.0.1
and
10.0.0.2
are linked by 2 arrow, one from 1 to 2, one form 2 to 1.
Is possible to draw only one line with both arrow?
I would have a result like in route2.png but i don’t know how!!!
Help me!!!

route.png

route2.png

···

#---------------------------------------
#code
#---------------------------------------
import pydot

edges=[(“10.0.0.1”,"
10.0.0.2
"), (“10.0.0.2”,"
10.0.0.1
"),("
10.0.0.2",“10.0.0.7
“),(“10.0.0.2”,”
10.0.0.9
”),("
10.0.0.2
",“10.0.0.6”),("
10.0.0.9
",“10.0.0.8”),("
10.0.0.6
","
10.0.0.7") ]

g=pydot.graph_from_edges(edges,directed=True)

g.write_png(‘route.png’)

Sbaush


Sbaush

CMIIMW, this is a graphviz/dot question, nothing to do with wxpython so you’ll get better answer on the dot mailing list. Cheers,

Oliver

···

From: Sbaush [mailto:sbaush@gmail.com]
Sent: February 14, 2006 11:01 AM
To:
wxPython-users@lists.wxwidgets.org
Subject: [wxPython-users] Fwd: PyDot problem

Hi all.
I use pydot for drawing nework link.
the code is at bottom of mail.
i have a png like this attached
If you look png you can see that 10.0.0.1 and 10.0.0.2 are linked by 2 arrow, one from 1 to 2, one form 2 to 1.
Is possible to draw only one line with both arrow?
I would have a result like in route2.png but i don’t know how!!!
Help me!!!

#---------------------------------------
#code
#---------------------------------------
import pydot

edges=[(“10.0.0.1”," 10.0.0.2"), (“10.0.0.2”," 10.0.0.1"),(" 10.0.0.2",“10.0.0.7 “),(“10.0.0.2”,” 10.0.0.9”),(" 10.0.0.2",“10.0.0.6”),(" 10.0.0.9",“10.0.0.8”),(" 10.0.0.6"," 10.0.0.7") ]
g=pydot.graph_from_edges(edges,directed=True)
g.write_png(‘route.png’)


Sbaush


Sbaush