Trait graph_neighbor_matching::NodeColorMatching
[−]
[src]
pub trait NodeColorMatching: Debug { fn node_color_matching(&self, node_i: usize, node_j: usize) -> Closed01<f32>; }
Required Methods
fn node_color_matching(&self, node_i: usize, node_j: usize) -> Closed01<f32>
Determines how close or distant two nodes node_i
of graph A,
and node_j
of graph B are. If they have different colors,
this method could return 0.0 to describe that they are completely
different nodes and as such the neighbor matching will try to choose
a different node.
NOTE: The returned value MUST be in the range [0, 1].
Implementors
impl NodeColorMatching for IgnoreNodeColors