Graph Drawing

subhabangalore at subhabangalore at
Wed Jan 2 21:13:24 CET 2013

Dear Group,

In networkx module we generally try to draw the graph as,
>>> import networkx as nx
>>> G=nx.Graph()
>>> G.add_edge(1, 2, weight=4.7 )
>>> G.add_edge(1, 3, weight=4.5 )

Now, if I want to retrieve the information of traversal from 1 to 3, I can give, 

but I am looking for a command or function by which I can get not only the node names but also the weights. 

If anyone in the room can kindly suggest?


NB: Apology for any indentation error, etc.

More information about the Python-list mailing list