Class InfiniteDistances<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.distance.graph.InfiniteDistances<U>
- Type Parameters:
U
- type of the users.
- All Implemented Interfaces:
GraphMetric<U>
public class InfiniteDistances<U> extends java.lang.Object implements GraphMetric<U>
Finds the number of infinite distance pairs of nodes.
-
Field Summary
Fields Modifier and Type Field Description private DistanceCalculator<U>
calculator
The distance calculator. -
Constructor Summary
Constructors Constructor Description InfiniteDistances(DistanceCalculator<U> calculator)
Constructor. -
Method Summary
-
Field Details
-
calculator
The distance calculator.
-
-
Constructor Details
-
InfiniteDistances
Constructor.- Parameters:
calculator
- a distance calculator.
-
-
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.
-