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.PyDAG.remove_node#

PyDAG.remove_node(node, /)#

Remove a node from the graph.

Parameters:

node (int) – The index of the node to remove. If the index is not present in the graph it will be ignored and this function will have no effect.