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