Write graph G as a list of edges with numeric weights.
Parameters : | G : graph
path : file or string
comments : string, optional
delimiter : string, optional
encoding: string, optional :
|
---|
See also
Examples
>>> G=nx.Graph()
>>> G.add_edge(1,2,weight=7)
>>> nx.write_weighted_edgelist(G, 'test.weighted.edgelist')