networkx.MultiDiGraph.succ¶

MultiDiGraph.
succ
¶ Graph adjacency object holding the successors of each node.
This object is a readonly dictlike structure with node keys and neighbordict values. The neighbordict is keyed by neighbor to the edgekeydict. So
G.adj[3][2][0]['color'] = 'blue'
sets the color of the edge(3, 2, 0)
to"blue"
.Iterating over G.adj behaves like a dict. Useful idioms include
for nbr, datadict in G.adj[n].items():
.The neighbor information is also provided by subscripting the graph. So
for nbr, foovalue in G[node].data('foo', default=1):
works.For directed graphs,
G.succ
is identical toG.adj
.