Struct graph_neighbor_matching::SimilarityMatrix [] [src]

pub struct SimilarityMatrix<'a, F, G, E, N> where
    F: NodeColorMatching<N>,
    G: Graph<EDGE = E, NODE = N> + 'a,
    E: Edges,
    N: Clone
{ /* fields omitted */ }

Methods

impl<'a, F, G, E, N> SimilarityMatrix<'a, F, G, E, N> where
    F: NodeColorMatching<N>,
    G: Graph<EDGE = E, NODE = N>,
    E: Edges,
    N: Clone
[src]

[src]

[src]

Calculates the next iteration of the similarity matrix (x[k+1]).

[src]

Iteratively calculate the similarity matrix.

stop_after_iter: Stop after iteration (Calculate x(stop_after_iter)) eps: When to stop the iteration

[src]

[src]

[src]

[src]

[src]

[src]

Calculate a measure how good the edge weights match up.

We start by calculating the optimal node assignment between nodes of graph A and graph B, then compare all outgoing edges of similar-assigned nodes by again using an assignment between the edge-weight differences of all edge pairs.

[src]

Sums the optimal assignment of the node similarities and normalizes (divides) by the min/max degree of both graphs. ScoreNorm::MinDegree is used as default in the paper.

[src]

Calculates the average over the whole node similarity matrix. This is faster, as no assignment has to be found. "Graphs with greater number of automorphisms would be considered to be more self-similar than graphs without automorphisms."

Trait Implementations

impl<'a, F: Debug, G: Debug, E: Debug, N: Debug> Debug for SimilarityMatrix<'a, F, G, E, N> where
    F: NodeColorMatching<N>,
    G: Graph<EDGE = E, NODE = N> + 'a,
    E: Edges,
    N: Clone
[src]

[src]

Formats the value using the given formatter.