rustworkx.PyGraph.degree#
- PyGraph.degree(node, /)#
Get the degree for a node
- Parameters:
node (int) – The index of the node to find the inbound degree of
- Returns degree:
The inbound degree for the specified node
- Return type:
int
Get the degree for a node
node (int) – The index of the node to find the inbound degree of
The inbound degree for the specified node
int