pm4py.algo.reduction.process_tree.reducer module#

class pm4py.algo.reduction.process_tree.reducer.Variants(*values)[source]#

Bases: Enum

TREE_TR_BASED = <module 'pm4py.algo.reduction.process_tree.variants.tree_tr_based' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/reduction/process_tree/variants/tree_tr_based.py'>#
pm4py.algo.reduction.process_tree.reducer.apply(*args, **kwargs) Any[source]#

Apply a reduction algorithm to a PM4Py object

Parameters:
  • args – Arguments of the reduction algorithm

  • kwargs – Keyword arguments of the reduction algorithm (including the variant, that is an item of the Variants enum)

Returns:

Reduced object

Return type:

reduced_obj