pm4py.objects.petri.importer package

Submodules

pm4py.objects.petri.importer.importer module

class pm4py.objects.petri.importer.importer.Variants(value)[source]

Bases: enum.Enum

An enumeration.

PNML = <module 'pm4py.objects.petri.importer.variants.pnml' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\objects\\petri\\importer\\variants\\pnml.py'>
pm4py.objects.petri.importer.importer.apply(input_file_path, variant=<Variants.PNML: <module 'pm4py.objects.petri.importer.variants.pnml' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\objects\\petri\\importer\\variants\\pnml.py'>>, parameters=None)[source]

Import a Petri net from a PNML file

Parameters
  • input_file_path – Input file path

  • parameters – Other parameters of the importer

  • variant

    Variant of the algorithm to use, possible values:
    • Variants.PNML

pm4py.objects.petri.importer.importer.deserialize(petri_string, variant=<Variants.PNML: <module 'pm4py.objects.petri.importer.variants.pnml' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\objects\\petri\\importer\\variants\\pnml.py'>>, parameters=None)[source]

Deserialize a text/binary string representing a Petri net in the PNML format

Parameters
  • petri_string – Petri net expressed as PNML string

  • variant

    Variant of the algorithm to use, possible values:
    • Variants.PNML

  • parameters – Other parameters of the algorithm

Module contents