pm4py.visualization.powl.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.visualization.powl.variants.basic 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.powl.variants.basic.Parameters(value)[source]#

Bases: Enum

An enumeration.

FORMAT = 'format'#
COLOR_MAP = 'color_map'#
ENABLE_DEEPCOPY = 'enable_deepcopy'#
FONT_SIZE = 'font_size'#
BGCOLOR = 'bgcolor'#
pm4py.visualization.powl.variants.basic.apply(powl: POWL, parameters: Optional[Dict[Union[str, Parameters], Any]] = None) Digraph[source]#

Obtain a POWL model representation through GraphViz

Parameters#

powl

POWL model

parameters

Possible parameters of the algorithm

Returns#

gviz

GraphViz Digraph

pm4py.visualization.powl.variants.basic.get_color(node, color_map)[source]#

Gets a color for a node from the color map

Parameters#

node

Node

color_map

Color map

pm4py.visualization.powl.variants.basic.get_id_base(powl)[source]#
pm4py.visualization.powl.variants.basic.get_id(powl)[source]#
pm4py.visualization.powl.variants.basic.add_operator_edge(vis, current_node_id, child, directory='none', style='')[source]#
pm4py.visualization.powl.variants.basic.add_order_edge(block, child_1, child_2, directory='forward', color='black', style='')[source]#
pm4py.visualization.powl.variants.basic.repr_powl(powl, viz, color_map, parameters)[source]#

pm4py.visualization.powl.variants.net 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.powl.variants.net.Parameters(value)[source]#

Bases: Enum

An enumeration.

FORMAT = 'format'#
RANKDIR = 'rankdir'#
FONT_SIZE = 'font_size'#
BGCOLOR = 'bgcolor'#
class pm4py.visualization.powl.variants.net.SplitExclusiveGateway(id='', name='', gateway_direction=None, in_arcs=None, out_arcs=None, process=None)[source]#

Bases: ExclusiveGateway

class pm4py.visualization.powl.variants.net.JoinExclusiveGateway(id='', name='', gateway_direction=None, in_arcs=None, out_arcs=None, process=None)[source]#

Bases: ExclusiveGateway

pm4py.visualization.powl.variants.net.can_connect_without_xor_violation(input_nodes, output_nodes)[source]#
pm4py.visualization.powl.variants.net.simplify_and_gateways(nodes, edges)[source]#
pm4py.visualization.powl.variants.net.add_node(n, viz, parameters)[source]#
pm4py.visualization.powl.variants.net.apply(powl: POWL, parameters: Optional[Dict[Any, Any]] = None) Digraph[source]#
class pm4py.visualization.powl.variants.net.FrequencyTask(name, properties, id='', in_arcs=None, out_arcs=None, process=None)[source]#

Bases: Task

pm4py.visualization.powl.variants.net.to_bpmn(net, im, fm)[source]#

Converts an accepting Petri net into a BPMN diagram

Parameters#

net

Petri net

im

initial marking

fm

final marking

Returns#

bpmn_graph

BPMN diagram

pm4py.visualization.powl.variants.net.find_concurrent_groups(nodes, edges)[source]#
pm4py.visualization.powl.variants.net.add_concurrent_subgraphs(graph, concurrent_elements)[source]#