pm4py.visualization.transition_system package

Submodules

pm4py.visualization.transition_system.parameters module

class pm4py.visualization.transition_system.parameters.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

FILLCOLORS = 'fillcolors'
FONT_SIZE = 'font_size'
FORCE_NAMES = 'force_names'
FORMAT = 'format'
SHOW_LABELS = 'show_labels'
SHOW_NAMES = 'show_names'

pm4py.visualization.transition_system.visualizer module

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

Bases: enum.Enum

An enumeration.

VIEW_BASED = <module 'pm4py.visualization.transition_system.variants.view_based' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\visualization\\transition_system\\variants\\view_based.py'>
pm4py.visualization.transition_system.visualizer.apply(tsys, parameters=None, variant=<Variants.VIEW_BASED: <module 'pm4py.visualization.transition_system.variants.view_based' from 'C:\\Users\\berti\\FRAUNHOFER\\pm4py-core\\pm4py\\visualization\\transition_system\\variants\\view_based.py'>>)[source]

Get visualization of a Transition System

Parameters
  • tsys – Transition system

  • parameters – Optional parameters of the algorithm

  • variant

    Variant of the algorithm to use, including:
    • Variants.VIEW_BASED

Returns

Graph visualization

Return type

gviz

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

Views the diagram using Matplotlib

Parameters

gviz – Graphviz

pm4py.visualization.transition_system.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.transition_system.visualizer.view(gviz)[source]

View the diagram

Parameters

gviz – GraphViz diagram

Module contents