pygambit.gambit.BehaviorSupportProfile.__setitem__#

BehaviorSupportProfile.__setitem__()#

Sets the support at infoset to exactly the given actions.

Parameters:
  • infoset (Selector) – An H-built expression resolving to a single node belonging to the information set whose support is to be set.

  • actions (Iterable[str]) – The labels of the actions which should be in the support at the information set. Every other action at the information set is removed from the support.

Raises:
  • TypeError – If infoset is not a Selector.

  • ValueError – If any entry of actions is not one of the information set’s action labels, or if actions is empty; or if infoset resolves to a terminal node, which belongs to no information set, or to a chance event.