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.in_edge_indices#

PyDAG.in_edge_indices(node, /)#

Return the list of incoming edge indices to a provided node

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

Parameters:

node (int) – The node index to get incoming 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 incoming edge indices to a node in the graph

Return type:

EdgeIndices