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, 
G.edges()

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?

Regards,
Subhabrata. 

NB: Apology for any indentation error, etc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to