rustworkx.PyDAG.has_node#

PyDAG.has_node(node, /)#

Check if the node exists in the graph.

Parameters:

node (int) – The node index to check

Returns:

True if the node exists, False otherwise

Return type:

bool