pm4py.visualization.ocel.interleavings.variants package

Submodules

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

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.visualization.ocel.interleavings.variants.graphviz.Parameters(value)[source]

Bases: enum.Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'
ACTIVITY_PERCENTAGE = 'activity_percentage'
AGGREGATION_MEASURE = 'aggregation_measure'
ANNOTATION = 'annotation'
BGCOLOR = 'bgcolor'
DEPENDENCY_THRESHOLD = 'dependency_threshold'
FORMAT = 'format'
MIN_FACT_EDGES_INTERLEAVINGS = 'min_fact_edges_interleavings'
PATHS_PERCENTAGE = 'paths_percentage'
RANKDIR = 'rankdir'
pm4py.visualization.ocel.interleavings.variants.graphviz.apply(dataframe1: pandas.core.frame.DataFrame, dataframe2: pandas.core.frame.DataFrame, interleavings: pandas.core.frame.DataFrame, parameters: Optional[Dict[Any, Any]] = None) graphviz.graphs.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

Module contents

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.