pygambit.gambit.Game.delete_parent#
- Game.delete_parent(node: Node | str) None #
Delete the parent node of node. node replaces its parent in the tree. All other subtrees rooted at node’s parent are deleted.
- Parameters:
node (Node or str) – The node to retain after deleting its parent. If a string is passed, the node is determined by finding the node with that label, if any.
- Raises:
MismatchError – If node is a Node from a different game.