pygambit.gambit.ExtensiveGame.get_subgame_roots#

ExtensiveGame.get_subgame_roots() → list[History]#

Returns the Histories of the roots of the subgames of the game, in postorder (children before parents).

Added in version 17.0.0.

Raises:

UndefinedOperationError – If the game does not have a tree representation.