interface SearchClosenessCentralityNormalizedOptions {
    directed?: boolean;
    harmonic?: boolean;
    weight?(edge: EdgeSingular): number;
    weight?(edge: EdgeSingular): number;
}

Properties

Methods

Properties

directed?: boolean
harmonic?: boolean

A boolean indicating whether the algorithm calculates the harmonic mean (true, default) or the arithmetic mean (false) of distances. The harmonic mean is very useful for graphs that are not strongly connected.

Methods