pm4py.objects.dfg.exporter.exporter module#

class pm4py.objects.dfg.exporter.exporter.Variants(*values)[source]#

Bases: Enum

CLASSIC = <module 'pm4py.objects.dfg.exporter.variants.classic' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/objects/dfg/exporter/variants/classic.py'>#
pm4py.objects.dfg.exporter.exporter.apply(dfg, output_path, variant=Variants.CLASSIC, parameters=None)[source]#

Exports a DFG

Parameters:
  • dfg – Directly-Follows Graph

  • output_path – Output path

  • variant

    Variants of the exporter, possible values:
    • Variants.CLASSIC: exporting to a .dfg file

  • parameters – Variant-specific parameters

pm4py.objects.dfg.exporter.exporter.serialize(dfg, variant=Variants.CLASSIC, parameters=None)[source]#

Serializes a DFG object into a binary string

Parameters:
  • dfg – DFG

  • variant

    Variants of the exporter, possible values:
    • Variants.CLASSIC: exporting to a .dfg file

  • parameters – Variant-specific parameters

Returns:

String that represents the DFG

Return type:

serialization