pm4py.algo.discovery.causal.algorithm module#

class pm4py.algo.discovery.causal.algorithm.Variants(*values)[source]#

Bases: Enum

CAUSAL_ALPHA = <module 'pm4py.algo.discovery.causal.variants.alpha' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/discovery/causal/variants/alpha.py'>#
CAUSAL_HEURISTIC = <module 'pm4py.algo.discovery.causal.variants.heuristic' from '/Users/chris/Desktop/PIS/pm4py2/pm4py/pm4py/algo/discovery/causal/variants/heuristic.py'>#
pm4py.algo.discovery.causal.algorithm.apply(dfg: Dict[Tuple[str, str], int], variant=Variants.CAUSAL_ALPHA) Dict[Tuple[str, str], int][source]#

Computes the causal relation on the basis of a given directly follows graph.

Parameters:
  • dfg – Directly follows graph

  • variant

    Variant of the algorithm to use:
    • Variants.CAUSAL_ALPHA

    • Variants.CAUSAL_HEURISTIC

Returns:

dict

Return type:

causal relations