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.remove_nodes_from#

PyGraph.remove_nodes_from(index_list, /)#

Remove nodes from the graph.

If a node index in the list is not present in the graph it will be ignored.

Parameters:

index_list (iterable) – An iterable of node indices to remove from the graph