NetworkX

Previous topic

out_edges_iter

Next topic

in_edges_iter

in_edges

MultiDiGraph.in_edges(nbunch=None, keys=False, data=False)

Return a list of the incoming edges.

Parameters :

nbunch : iterable container, optional (default= all nodes)

A container of nodes. The container will be iterated through once.

data : bool, optional (default=False)

If True, return edge attribute dict with each edge.

keys : bool, optional (default=False)

If True, return edge keys with each edge.

Returns :

in_edges : list

A list of (u,v), (u,v,d) or (u,v,key,d) tuples of edges.

See also

out_edges
return a list of outgoing edges