rustworkx.PyDiGraph.has_node#
- PyDiGraph.has_node(node, /)#
Check if the node exists in the graph.
- Parameters:
node (int) – The node index to check
- Returns:
Trueif the node exists,Falseotherwise- Return type:
bool
Check if the node exists in the graph.
node (int) – The node index to check
True if the node exists, False otherwise
bool