pm4py.objects.stochastic_petri.utils module#

pm4py.objects.stochastic_petri.utils.pick_transition(et, smap)[source]#

Pick a transition in a set of transitions based on the weights specified by the stochastic map

Parameters:
  • et – Enabled transitions

  • smap – Stochastic map

Returns:

Transition chosen according to the weights

Return type:

trans