pm4py.algo.discovery.genetic.util 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.genetic.util.iset(iterable=(), /)[source]#

Bases: frozenset

Indexable frozenset printing as set, i.e. without frozenset(…)

static flat(item: Iterable) → iset[source]#
pm4py.algo.discovery.genetic.util.rand_partition(pool: Iterable) → List[Set[str] | FrozenSet[str]][source]#
pm4py.algo.discovery.genetic.util.add_singleton_partition(tmap: Dict[str, List[FrozenSet[str]]], key: str, t: str)[source]#
pm4py.algo.discovery.genetic.util.remove_transition_from_partitions(tmap: Dict[str, List[FrozenSet[str]]], key: str, t: str)[source]#
pm4py.algo.discovery.genetic.util.get_src_sink_sets_for_wfnet(I: Dict[str, List[FrozenSet[str]]], O: Dict[str, List[FrozenSet[str]]], T: List[str]) → Tuple[List[str], List[str]][source]#

Determines input set and output set, which need to be connected by a place to create a WF-net