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")])
>
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,