This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.


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

return a list of outgoing edges