pm4py.algo.transformation.log_to_interval_tree.algorithm module#

class pm4py.algo.transformation.log_to_interval_tree.algorithm.Variants(*values)[source]#

Bases: Enum

OPEN_PATHS = <module 'pm4py.algo.transformation.log_to_interval_tree.variants.open_paths' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/transformation/log_to_interval_tree/variants/open_paths.py'>#
pm4py.algo.transformation.log_to_interval_tree.algorithm.apply(log: EventLog, variant=Variants.OPEN_PATHS, parameters: Dict[Any, Any] | None = None) IntervalTree[source]#

Transforms the event log to an interval tree using one of the available variants

Parameters:
  • log – Event log

  • variant – Variant of the algorithm to be used: - Variants.OPEN_PATHS: transforms the event log to an interval tree in which the intervals are the

    directly-follows paths in the log (open at the complete timestamp of the source event, and closed at the start timestamp of the target event),

    and having as associated data the source and the target event.

Returns:

Interval tree object (which can be queried at a given timestamp, or range of timestamps)

Return type:

tree