pm4py.algo.evaluation.simplicity.variants.arc_degree 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.evaluation.simplicity.variants.arc_degree.Parameters(*values)[source]#

Bases: Enum

K = 'k'#
pm4py.algo.evaluation.simplicity.variants.arc_degree.apply(petri_net: PetriNet, parameters: Dict[str | Parameters, Any] | None = None) → float[source]#

Gets simplicity from a Petri net.

Sánchez-González, Laura, et al. “Prediction of business process model quality based on structural metrics.” International Conference on Conceptual Modeling. Berlin, Heidelberg: Springer Berlin Heidelberg, 2010.

Vázquez-Barreiros, Borja, Manuel Mucientes, and Manuel Lama. “ProDiGen: Mining complete, precise and minimal structure process models with a genetic algorithm.” Information Sciences 294 (2015): 315-333.

Parameters:
  • petri_net – Petri net

  • parameters –

    Possible parameters of the algorithm:

    • K: defines the value to be substracted in the formula: the lower is the value, the lower is the simplicity value. k is the baseline arc degree (that is subtracted from the others)

Returns:

Simplicity measure associated to the Petri net

Return type:

simplicity