pm4py.visualization.process_tree package

Submodules

pm4py.visualization.process_tree.visualizer module

class pm4py.visualization.process_tree.visualizer.Variants(value)[source]

Bases: enum.Enum

An enumeration.

SYMBOLIC = <module 'pm4py.visualization.process_tree.variants.symbolic' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\visualization\\process_tree\\variants\\symbolic.py'>
WO_DECORATION = <module 'pm4py.visualization.process_tree.variants.wo_decoration' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\visualization\\process_tree\\variants\\wo_decoration.py'>
pm4py.visualization.process_tree.visualizer.apply(tree0, parameters=None, variant=<Variants.WO_DECORATION: <module 'pm4py.visualization.process_tree.variants.wo_decoration' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\visualization\\process_tree\\variants\\wo_decoration.py'>>)[source]

Method for Process Tree representation

Parameters
  • tree – Process tree

  • parameters

    Possible parameters of the algorithm:

    Parameters.FORMAT -> Format of the image (PDF, PNG, SVG; default PNG)

  • variant

    Variant of the algorithm to use:
    • Variants.WO_DECORATION

Returns

GraphViz object

Return type

gviz

pm4py.visualization.process_tree.visualizer.matplotlib_view(gviz)[source]

Views the diagram using Matplotlib

Parameters

gviz – Graphviz

pm4py.visualization.process_tree.visualizer.save(gviz, output_file_path)[source]

Save the diagram

Parameters
  • gviz – GraphViz diagram

  • output_file_path – Path where the GraphViz output should be saved

pm4py.visualization.process_tree.visualizer.view(gviz)[source]

View the diagram

Parameters

gviz – GraphViz diagram

Module contents