pm4py.llm.abstract_petri_net#

pm4py.llm.abstract_petri_net(net: PetriNet, im: Marking, fm: Marking, response_header: bool = True) str[source]#

Obtain an abstraction of a Petri net

Parameters:
  • net (PetriNet) – Petri net

  • im (Marking) – Initial marking

  • fm (Marking) – Final marking

  • response_header (bool) – includes the header of the response

Return type:

str

import pm4py

net, im, fm = pm4py.read_pnml('tests/input_data/running-example.pnml')
print(pm4py.llm.abstract_petri_net(net, im, fm))