pm4py.visualization.ocel.interleavings.variants.graphviz module#

class pm4py.visualization.ocel.interleavings.variants.graphviz.Parameters(*values)[source]#

Bases: Enum

FORMAT = 'format'#
BGCOLOR = 'bgcolor'#
RANKDIR = 'rankdir'#
ANNOTATION = 'annotation'#
AGGREGATION_MEASURE = 'aggregation_measure'#
ACTIVITY_KEY = 'pm4py:param:activity_key'#
ACTIVITY_PERCENTAGE = 'activity_percentage'#
PATHS_PERCENTAGE = 'paths_percentage'#
DEPENDENCY_THRESHOLD = 'dependency_threshold'#
MIN_FACT_EDGES_INTERLEAVINGS = 'min_fact_edges_interleavings'#
ENABLE_GRAPH_TITLE = 'enable_graph_title'#
GRAPH_TITLE = 'graph_title'#
pm4py.visualization.ocel.interleavings.variants.graphviz.apply(dataframe1: DataFrame, dataframe2: DataFrame, interleavings: DataFrame, parameters: Dict[Any, Any] | None = None) Digraph[source]#

Visualizes the interleavings discovered between two different processes. We suppose to provide both event logs, and the discovered interleavings. The visualization includes the DFG of both processes, along with the arcs discovered between them. Both frequency and performance visualization are available.

Parameters:
  • dataframe1 – Dataframe of the first process

  • dataframe2 – Dataframe of the second process

  • interleavings – Interleavings between the two considered processes

  • parameters – Parameters of the algorithm, including: - Parameters.FORMAT => the format of the visualization - Parameters.BGCOLOR => the background color - Parameters.RANKDIR => the rank direction (LR or TB; default: TB) - Parameters.ANNOTATION => the annotation to represent (possible values: frequency or performance) - Parameters.AGGREGATION_MEASURE => which aggregation should be used when considering performance - Parameters.ACTIVITY_KEY => the activity key - Parameters.ACTIVITY_PERCENTAGE => the percentage of activities to include for the DFG of the single processes - Parameters.PATHS_PERCENTAGE => the percentage of paths to include for the DFG of the single processes - Parameters.DEPENDENCY_THRESHOLD => the dependency threshold to consider for the DFG of the single processes - Parameters.MIN_FACT_EDGES_INTERLEAVINGS => factor that is multiplied to the minimum number of occurrences of

    edges in the single processes, to decide if the interleavings edge should be included. E.g., if 0.3 is provided, only interleavings edges having a frequency of at least 0.3 * MIN_EDGE_COUNT_IN_PROCESSES are included.

Returns:

Graphviz Digraph

Return type:

digraph