Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

rustworkx.PyDAG.out_edge_indices#

PyDAG.out_edge_indices(node, /)#

Return the list of outgoing edge indices from a provided node

This method will return the outgoing edges of the provided node.

Parameters:

node (int) – The node index to get outgoing edges from. If this node index is not present in the graph this method will return an empty list and not raise an error.

Returns:

A list of the outgoing edge indices from a node in the graph

Return type:

EdgeIndices