Return the data associated with the edge (u,v).
Parameters: | u,v : nodes
default: any Python object :
|
---|
Notes
It is faster to use G[u][v].
>>> G[0][1]
1
Examples
>>> G=nx.path_graph(4) # path graph with edge data all set to 1
>>> G.get_edge(0,1)
1
>>> e=(0,1)
>>> G.get_edge(*e) # tuple form
1