Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

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:

True if the node exists, False otherwise

Return type:

bool