pm4py.objects.heuristics_net.node module#
- 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