pm4py.visualization.dfg.variants.cost module#

PM4Py – A Process Mining Library for Python

Copyright (C) 2024 Process Intelligence Solutions UG (haftungsbeschränkt)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.

Website: https://processintelligence.solutions Contact: info@processintelligence.solutions

class pm4py.visualization.dfg.variants.cost.Parameters(*values)[source]#

Bases: Enum

ACTIVITY_KEY = 'pm4py:param:activity_key'#
FORMAT = 'format'#
MAX_NO_EDGES_IN_DIAGRAM = 'maxNoOfEdgesInDiagram'#
START_ACTIVITIES = 'start_activities'#
END_ACTIVITIES = 'end_activities'#
TIMESTAMP_KEY = 'pm4py:param:timestamp_key'#
START_TIMESTAMP_KEY = 'pm4py:param:start_timestamp_key'#
FONT_SIZE = 'font_size'#
AGGREGATION_MEASURE = 'aggregation_measure'#
RANKDIR = 'rankdir'#
BGCOLOR = 'bgcolor'#
ENABLE_GRAPH_TITLE = 'enable_graph_title'#
GRAPH_TITLE = 'graph_title'#
pm4py.visualization.dfg.variants.cost.apply(dfg: Dict[Tuple[str, str], int], log: EventLog = None, parameters: Dict[Any, Any] | None = None, activities_count: Dict[str, int] = None, serv_time: Dict[str, float] = None) Digraph[source]#

Visualize a cost-based directly-follows graph

Parameters:
  • dfg – Performance Directly-follows graph

  • log – (if provided) Event log for the calculation of statistics

  • activities_count – (if provided) Dictionary associating to each activity the number of occurrences in the log.

  • serv_time – (if provided) Dictionary associating to each activity the average service time

  • parameters – Variant-specific parameters

Returns:

Graphviz digraph

Return type:

gviz