pm4py.convert.convert_petri_net_type#

pm4py.convert.convert_petri_net_type(net: PetriNet, im: Marking, fm: Marking, type: str = 'classic') Tuple[PetriNet, Marking, Marking][source]#

Changes the Petri net (internal) type

Parameters:
  • net (PetriNet) – petri net

  • im (Marking) – initial marking

  • fm (Marking) – final marking

  • type (str) – internal type (classic, reset, inhibitor, reset_inhibitor)

Return type:

Tuple[PetriNet, Marking, Marking]