pm4py.visualization.process_tree.variants package

Submodules

pm4py.visualization.process_tree.variants.symbolic module

class pm4py.visualization.process_tree.variants.symbolic.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

COLOR_MAP = 'color_map'
ENABLE_DEEPCOPY = 'enable_deepcopy'
FONT_SIZE = 'font_size'
FORMAT = 'format'
pm4py.visualization.process_tree.variants.symbolic.apply(tree, parameters=None)[source]

Obtain a Process Tree representation through GraphViz

Parameters
  • tree – Process tree

  • parameters – Possible parameters of the algorithm

Returns

GraphViz object

Return type

gviz

pm4py.visualization.process_tree.variants.symbolic.get_color(node, color_map)[source]

Gets a color for a node from the color map

Parameters
  • node – Node

  • color_map – Color map

pm4py.visualization.process_tree.variants.symbolic.repr_tree(tree, viz, color_map, parameters)[source]

pm4py.visualization.process_tree.variants.wo_decoration module

class pm4py.visualization.process_tree.variants.wo_decoration.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

COLOR_MAP = 'color_map'
ENABLE_DEEPCOPY = 'enable_deepcopy'
FONT_SIZE = 'font_size'
FORMAT = 'format'
pm4py.visualization.process_tree.variants.wo_decoration.apply(tree, parameters=None)[source]

Obtain a Process Tree representation through GraphViz

Parameters
  • tree – Process tree

  • parameters – Possible parameters of the algorithm

Returns

GraphViz object

Return type

gviz

pm4py.visualization.process_tree.variants.wo_decoration.get_color(node, color_map)[source]

Gets a color for a node from the color map

Parameters
  • node – Node

  • color_map – Color map

pm4py.visualization.process_tree.variants.wo_decoration.repr_tree(tree, viz, current_node, rec_depth, color_map, parameters)[source]

Represent a subtree on the GraphViz object

Parameters
  • tree – Current subtree

  • viz – GraphViz object

  • current_node – Father node of the current subtree

  • rec_depth – Reached recursion depth

  • color_map – Color map

  • parameters – Possible parameters of the algorithm.

Returns

(partial) GraphViz object

Return type

gviz

pm4py.visualization.process_tree.variants.wo_decoration.repr_tree_2(tree, viz, color_map, parameters)[source]

Module contents