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 SummaryFields Modifier and Type Field Description private DistanceCalculator<U>dcCalculates the distancesprivate ASLModemodeCalculation mode
- 
Constructor SummaryConstructors 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- 
ASLConstructor- Parameters:
- dc- distance calculator.
- mode- the calculation mode.
 
- 
ASLConstructor. Applies the default mode (Averages over all the pairs of distinct nodes without infinite distances- Parameters:
- dc- distance calculator.
 
- 
ASLConstructor- Parameters:
- mode- the calculation mode.
 
- 
ASLpublic ASL()Default constructor. Applies the default mode (Averages over all the pairs of distinct nodes without infinite distances
 
- 
- 
Method Details- 
computeDescription copied from interface:GraphMetricComputes the value.- Specified by:
- computein interface- GraphMetric<U>
- Parameters:
- graph- graph metric.
- Returns:
- the value of the metric.
 
 
-