rustworkx.PyDiGraph.out_edges#

PyDiGraph.out_edges(node, /)#

Get the index and edge data for all children of a node.

This will return a list of tuples with the child index the node index and the edge data. This can be used to recreate add_edge() calls.

Parameters:

node (int) – The index of the node to get the edges for

Returns out_edges:

A list of tuples of the form: `(node_index, child_index, edge_data)`

Return type:

WeightedEdgeList