pygambit.gambit.Game.delete_parent#
- Game.delete_parent(node: Selector) None#
Delete the parent of the node identified by node. That node replaces its parent in the tree. All other subtrees rooted at the parent are deleted.
node is a Selector (an H-built expression, evaluated against this game) that must resolve to exactly one node.
Changed in version 17.0.0: node is now a Selector; a Node or str is no longer accepted directly – build one with H.
- Parameters:
node (Selector) – A Selector resolving to the single node to retain after deleting its parent.
- Raises:
TypeError – If node is not a Selector.
ValueError – If node does not resolve to exactly one node.
