Skip to main content

node_correctness

Function node_correctness 

Source
pub fn node_correctness(
    mapping: &[(usize, usize)],
    ground_truth: &[(usize, usize)],
) -> f64
Expand description

Node Correctness (NC): fraction of correctly mapped nodes.

Compares the computed mapping against a known ground truth alignment. A node is “correct” if it is mapped to the same target in both the computed and ground truth mappings.

§Returns

A value in [0.0, 1.0]. Returns 0.0 if ground truth is empty.