rustworkx.PyDiGraph.remove_nodes_from#

PyDiGraph.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 (list) – A list of node indicies to remove from the the graph.