pm4py.objects.bpmn.layout.variants.graphviz module#
PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH
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.objects.bpmn.layout.variants.graphviz.EndpointDirection(*values)[source]#
Bases:
Enum- RIGHT = 'right'#
- LEFT = 'left'#
- TOP = 'top'#
- BOTTOM = 'bottom'#
- class pm4py.objects.bpmn.layout.variants.graphviz.Parameters(*values)[source]#
Bases:
Enum- TASK_WH = 'task_wh'#
- SCREEN_SIZE_X = 'screen_size_x'#
- SCREEN_SIZE_Y = 'screen_size_y'#
- SCALING_FACTOR = 'scaling_factor'#
- pm4py.objects.bpmn.layout.variants.graphviz.get_right_edge_coord(layout, node, p, partial_counter, total_counter)[source]#
- pm4py.objects.bpmn.layout.variants.graphviz.get_left_edge_coord(layout, node, p, partial_counter, total_counter)[source]#
- pm4py.objects.bpmn.layout.variants.graphviz.get_top_edge_coord(layout, node, p, partial_counter, total_counter)[source]#
- pm4py.objects.bpmn.layout.variants.graphviz.get_bottom_edge_coord(layout, node, p, partial_counter, total_counter)[source]#
- pm4py.objects.bpmn.layout.variants.graphviz.apply(bpmn_graph, parameters=None)[source]#
Layouts a BPMN graph (inserting the positions of the nodes and the layouting of the edges)
- Parameters:
bpmn_graph – BPMN graph
parameters – Parameters of the algorithm: - Parameters.SCREEN_SIZE_X => target size of the screen in pixels (default 1920.0) - Parameters.SCREEN_SIZE_Y => target size of the screen in pixels (default 1080.0) - Parameters.SCALING_FACTOR => scaling factor of the layouting (defualt 2.5)
- Returns:
BPMN graph with layout information
- Return type:
bpmn_graph