pygambit.gambit.Game.delete_tree#
- Game.delete_tree(node: Selector) None#
Truncate the game tree at the node identified by node, deleting the subtree beneath it.
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 truncate the game at.
- Raises:
TypeError – If node is not a Selector.
ValueError – If node does not resolve to exactly one node.
