pygambit.gambit.BehaviorSupportProfile.__getitem__#
- BehaviorSupportProfile.__getitem__()#
Access a component of the support profile specified by index.
- Parameters:
index (str or Selector) –
The part of the profile to return:
If index is a
str, returns aBehaviorSupportover the player’s information sets. The player is determined by finding the player with that label, if any.If index is a
Selector(an H-built expression) resolving to a single node, returns anActionSupportover the actions in the support at that node’s information set.
- Raises:
TypeError – If index is not a
stror aSelector.ValueError – If index is a
Selectorresolving to a terminal node, which belongs to no information set, or to a chance event.KeyError – If index is a
strand no player in the game has that label.
