Re: networkx plot random graph Error

2014-07-16 Thread Jason Swails
On Jul 15, 2014, at 3:11 AM, u2107 wrote: > I am trying to read a file with 3 columns with col 1 and 2 as nodes/edges and > column 3 as weight (value with decimal) > > I am trying to execute this code > > > import networkx as nx > > > G = nx.read_edgelist('file.txt', data=[("weight")]) >

networkx plot random graph Error

2014-07-15 Thread u2107
I am trying to read a file with 3 columns with col 1 and 2 as nodes/edges and column 3 as weight (value with decimal) I am trying to execute this code import networkx as nx G = nx.read_edgelist('file.txt', data=[("weight")]) G.edges(data=True) edge_labels = dict(((u, v), d["weight"]) for u,