Set edge attributes from dictionary of edge tuples and values
Parameters : | G : NetworkX Graph name : string
attributes: dict :
|
---|
Examples
>>> G=nx.path_graph(3)
>>> bb=nx.edge_betweenness_centrality(G, normalized=False)
>>> nx.set_edge_attributes(G,'betweenness',bb)
>>> G[1][2]['betweenness']
2.0