rustworkx.PyDAG.in_degree#

PyDAG.in_degree(node, /)#

Get the degree of a node for inbound edges.

Parameters:

node (int) – The index of the node to find the inbound degree of

Returns:

The inbound degree for the specified node

Return type:

int