Class ReciprocalDiameter<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.distance.graph.ReciprocalDiameter<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
GraphMetric<U>
public class ReciprocalDiameter<U> extends java.lang.Object implements GraphMetric<U>
Computes the reciprocal diameter of a network.
References:
- J. Sanz-Cruzado, P. Castells. Beyond accuracy in link prediction. 3rd Workshop on Social Media for Personalization and Search (SoMePEaS 2019).
- J. Sanz-Cruzado, S.M. Pepa, P. Castells. Structural novelty and diversity in link prediction. 0th International Workshop on Modeling Social Media (MSM 2018) at The Web Conference (WWW 2018)
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ReciprocalDiameter()
Constructor.ReciprocalDiameter(DistanceCalculator<U> dc)
Constructor. -
Method Summary
-
Field Details
-
diameter
Distance calculator.
-
-
Constructor Details
-
ReciprocalDiameter
Constructor.- Parameters:
dc
- distance calculator.
-
ReciprocalDiameter
public ReciprocalDiameter()Constructor.
-
-
Method Details
-
compute
Description copied from interface:GraphMetric
Computes the value.- Specified by:
compute
in interfaceGraphMetric<U>
- Parameters:
graph
- graph metric.- Returns:
- the value of the metric.
-