larch.model.tree.NestingTree.remove_node

larch.model.tree.NestingTree.remove_node

NestingTree.remove_node(n)[source]

Remove node n.

Removes the node n, reconnecting all outedges to the head node of all inedges. Attempting to remove a non-existent node will raise an exception.

Parameters

n (int) – A node in the graph