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