pm4py.objects.bpmn.layout.variants package#

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/>.

Submodules#

pm4py.objects.bpmn.layout.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.objects.bpmn.layout.variants.graphviz.EndpointDirection(value)[source]#

Bases: Enum

An enumeration.

RIGHT = 'right'#
LEFT = 'left'#
TOP = 'top'#
BOTTOM = 'bottom'#
class pm4py.objects.bpmn.layout.variants.graphviz.Parameters(value)[source]#

Bases: Enum

An enumeration.

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