Class HarmonicCentrality<U>

java.lang.Object
es.uam.eps.ir.relison.sna.metrics.distance.vertex.Closeness<U>
es.uam.eps.ir.relison.sna.metrics.distance.vertex.HarmonicCentrality<U>
Type Parameters:
U - Type of the users.
All Implemented Interfaces:
VertexMetric<U>

public class HarmonicCentrality<U>
extends Closeness<U>
Metric that computes the harmonic centrality of the nodes (a version of closeness that uses the harmonic mean of the distances from the target node to the rest of nodes in the network.

References:
M.E.J. Newman. Networks: an introduction (2010)
L.C. Freeman. Centrality in Networks: I. Conceptual clarification, Social Networks 1, 1979, pp.215-239

  • Constructor Details

    • HarmonicCentrality

      public HarmonicCentrality()
      Basic constructor. Uses the harmonic mean computing algorithm.
    • HarmonicCentrality

      public HarmonicCentrality​(DistanceCalculator<U> dc)
      Constructor. Uses the harmonic mean computing algorithm.
      Parameters:
      dc - distance calculator.