pygambit.gambit.Game.get_minimal_subgame#
- Game.get_minimal_subgame(node: Selector) Subgame#
Returns the smallest subgame containing the information set or event that the node identified by node belongs to.
node is a Selector (an H-built expression, evaluated against this game) that must resolve to exactly one node.
Added in version 16.7.0.
Changed in version 17.0.0: Renamed from minimal_subgame. node (formerly infoset) is now a Selector; a Node or str is no longer accepted directly – build one with H.
- Parameters:
node (Selector) – A Selector resolving to a single node belonging to the information set or event to query.
- Returns:
The smallest subgame containing the information set or event that node belongs to.
- Return type:
- Raises:
TypeError – If node is not a Selector.
UndefinedOperationError – If the game does not have a tree representation.
ValueError – If node does not resolve to exactly one node, or belongs to no information set or event (it is terminal).
