pm4py.objects.bpmn.util package

Submodules

pm4py.objects.bpmn.util.reduction module

pm4py.objects.bpmn.util.reduction.apply(bpmn_graph, parameters=None)[source]

Reduce the complexity of a BPMN graph by removing useless elements

Parameters
  • bpmn_graph – BPMN graph

  • parameters – Parameters

Returns

(possibly reduced) BPMN graph

Return type

bpmn_graph

pm4py.objects.bpmn.util.reduction.reduce_xor_gateways(bpmn_graph, parameters=None)[source]

Reduces the number of XOR gateways in the diagram

Parameters
  • bpmn_graph – BPMN graph

  • parameters – Parameters

Returns

(possibly reduced) BPMN graph

Return type

bpmn_graph

pm4py.objects.bpmn.util.sorting module

pm4py.objects.bpmn.util.sorting.bfs_bpmn(nodes, edges)[source]
pm4py.objects.bpmn.util.sorting.get_sorted_nodes_edges(bpmn_graph)[source]

Assure an ordering as-constant-as-possible

Parameters

bpmn_graph – BPMN graph

Returns

  • nodes – List of nodes of the BPMN graph

  • edges – List of edges of the BPMN graph

pm4py.objects.bpmn.util.sorting.sort_edges_given_bfs(edges, bfs)[source]
pm4py.objects.bpmn.util.sorting.sort_nodes_given_bfs(nodes, bfs)[source]

Module contents