pm4py.objects.heuristics_net.node 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.objects.heuristics_net.node.Node(heuristics_net, node_name, node_occ, is_start_node=False, is_end_node=False, default_edges_color='#000000', node_type='frequency', net_name='', nodes_dictionary=None)[source]#

Bases: object

add_output_connection(other_node, dependency_value, dfg_value, repr_color=None, repr_value=None)[source]#

Adds an output connection to another node

Parameters:
  • other_node – Other node

  • dependency_value – Dependency value

  • dfg_value – DFG value

  • repr_color – Color associated to the edge

  • repr_value – Value associated to the edge (if None, dfg_value is used)

add_input_connection(other_node, dependency_value, dfg_value, repr_color=None, repr_value=None)[source]#

Adds an input connection to another node

Parameters:
  • other_node – Other node

  • dependency_value – Dependency value

  • dfg_value – DFG value

  • repr_color – Color associated to the edge

  • repr_value – Value associated to the edge (if None, dfg_value is used)

calculate_and_measure_out(and_measure_thresh='and_measure_thresh')[source]#

Calculate AND measure for output relations (as couples)

Parameters:

and_measure_thresh – AND measure threshold

calculate_and_measure_in(and_measure_thresh='and_measure_thresh')[source]#

Calculate AND measure for input relations (as couples)

Parameters:

and_measure_thresh – AND measure threshold

calculate_loops_length_two(dfg_matrix, freq_triples_matrix, loops_length_two_thresh=0.5)[source]#

Calculate loops of length two

Parameters:
  • dfg_matrix – DFG matrix

  • freq_triples_matrix – Matrix of triples

  • loops_length_two_thresh – Loops length two threshold

get_fill_color(default)[source]#

Gets the fill color for the representation

Parameters:

default – Default value

get_font_color()[source]#

Gets the font color for the representation