pm4py.visualization.powl.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

Subpackages#

Submodules#

pm4py.visualization.powl.variants.basic 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.powl.variants.basic.Parameters(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

FORMAT = 'format'#
COLOR_MAP = 'color_map'#
ENABLE_DEEPCOPY = 'enable_deepcopy'#
FONT_SIZE = 'font_size'#
BGCOLOR = 'bgcolor'#
pm4py.visualization.powl.variants.basic.apply(powl: POWL) Digraph[source]#

Obtain a POWL model representation through GraphViz

Parameters#

powl

POWL model

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, level)[source]#
pm4py.visualization.powl.variants.basic.darken_color(color, amount)[source]#

Darkens the given color by the specified amount

pm4py.visualization.powl.variants.net 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.powl.variants.net.Parameters(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

FORMAT = 'format'#
RANKDIR = 'rankdir'#
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)[source]#
pm4py.visualization.powl.variants.net.apply(powl: POWL) 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]#