pm4py.algo.discovery.split_miner.dtypes.working_graph module#

PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH

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.algo.discovery.split_miner.dtypes.working_graph.Node(id: str, kind: Literal['task', 'xor', 'and', 'or', 'start', 'end'], label: str = '')[source]#

Bases: object

id: str#
kind: Literal['task', 'xor', 'and', 'or', 'start', 'end']#
label: str = ''#
class pm4py.algo.discovery.split_miner.dtypes.working_graph.WorkingGraph(nodes: Dict[str, ~pm4py.algo.discovery.split_miner.dtypes.working_graph.Node]=<factory>, out_edges: Dict[str, ~typing.List[str]]=<factory>, in_edges: Dict[str, ~typing.List[str]]=<factory>, start_id: str = '', end_id: str = '', concurrency: Set[FrozenSet[str]] = <factory>, self_loops: Set[str] = <factory>, _id_counter: int = 0)[source]#

Bases: object

Adjacency-list representation of a BPMN graph in construction.

nodes: Dict[str, Node]#
out_edges: Dict[str, List[str]]#
in_edges: Dict[str, List[str]]#
start_id: str = ''#
end_id: str = ''#
concurrency: Set[FrozenSet[str]]#
self_loops: Set[str]#
fresh_id(prefix: str) → str[source]#
add_node(kind: Literal['task', 'xor', 'and', 'or', 'start', 'end'], label: str = '', node_id: str | None = None) → str[source]#
add_edge(src: str, tgt: str) → None[source]#
remove_edge(src: str, tgt: str) → None[source]#
remove_node(node_id: str) → None[source]#
successors(node_id: str) → List[str][source]#
predecessors(node_id: str) → List[str][source]#
edges() → List[Tuple[str, str]][source]#
is_concurrent(a: str, b: str) → bool[source]#