Warning
This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
in_edges_iter¶
-
MultiDiGraph.
in_edges_iter
(nbunch=None, data=False, keys=False)[source]¶ Return an iterator over 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_edge_iter – An iterator of (u,v), (u,v,d) or (u,v,key,d) tuples of edges.
Return type: iterator
See also
edges_iter()
- return an iterator of edges