rustworkx.PyGraph.remove_node#

PyGraph.remove_node(node, /)#

从图中移除一个节点。

Parameters:

node (int) – 要移除节点的索引。如果图中不存在该索引,它将被忽略,此函数将不会产生任何效果。