pm4py.objects.bpmn.layout.variants package#
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
Submodules#
pm4py.objects.bpmn.layout.variants.graphviz 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.objects.bpmn.layout.variants.graphviz.EndpointDirection(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
Enum
- RIGHT = 'right'#
- LEFT = 'left'#
- TOP = 'top'#
- BOTTOM = 'bottom'#
- class pm4py.objects.bpmn.layout.variants.graphviz.Parameters(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[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
BPMN graph with layout information
pm4py.objects.bpmn.layout.variants.graphviz_new 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
- pm4py.objects.bpmn.layout.variants.graphviz_new.apply(bpmn_graph: BPMN, parameters: Dict[Any, Any] | None = None) BPMN [source]#
Layouts the BPMN graphviz using directly the information about node positioning and edges waypoints provided in the SVG obtained from Graphviz.
Parameters#
- bpmn_graph
BPMN graph
- parameters
Optional parameters of the method
Returns#
- layouted_bpmn
Layouted BPMN