Warning
This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.
out_edges¶
-
MultiDiGraph.
out_edges
(nbunch=None, keys=False, data=False)[source]¶ Return a list of the outgoing edges.
Edges are returned as tuples with optional data and keys in the order (node, neighbor, key, data).
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: out_edges – An listr of (u,v), (u,v,d) or (u,v,key,d) tuples of edges.
Return type: Notes
Nodes in nbunch that are not in the graph will be (quietly) ignored. For directed graphs edges() is the same as out_edges().
See also
in_edges()
- return a list of incoming edges