Struct graph_neighbor_matching::IgnoreNodeColors [] [src]

pub struct IgnoreNodeColors;

Trait Implementations

impl Debug for IgnoreNodeColors
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl NodeColorMatching for IgnoreNodeColors
[src]

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]. Read more