Class ASL<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.distance.graph.ASL<U>
- Type Parameters:
U
- Type of the users.
- All Implemented Interfaces:
GraphMetric<U>
public class ASL<U> extends java.lang.Object implements GraphMetric<U>
Computes the Average Shortest path Length of graphs.
-
Field Summary
Fields Modifier and Type Field Description private DistanceCalculator<U>
dc
Calculates the distancesprivate ASLMode
mode
Calculation mode -
Constructor Summary
Constructors Constructor Description ASL()
Default constructor.ASL(DistanceCalculator<U> dc)
Constructor.ASL(DistanceCalculator<U> dc, ASLMode mode)
ConstructorASL(ASLMode mode)
Constructor -
Method Summary
-
Field Details
-
Constructor Details
-
ASL
Constructor- Parameters:
dc
- distance calculator.mode
- the calculation mode.
-
ASL
Constructor. Applies the default mode (Averages over all the pairs of distinct nodes without infinite distances- Parameters:
dc
- distance calculator.
-
ASL
Constructor- Parameters:
mode
- the calculation mode.
-
ASL
public ASL()Default constructor. Applies the default mode (Averages over all the pairs of distinct nodes without infinite distances
-
-
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.
-