rustworkx.PyDAG.remove_node#

PyDAG.remove_node(node, /)#

从图中移除一个节点。

Parameters:

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