Class ASLGridSearch<U>
java.lang.Object
es.uam.eps.ir.relison.grid.sna.graph.ASLGridSearch<U>
- Type Parameters:
U
- type of the users
- All Implemented Interfaces:
GraphMetricGridSearch<U>
public class ASLGridSearch<U> extends java.lang.Object implements GraphMetricGridSearch<U>
Grid for the average shortest path length of a graph.
- See Also:
ASL
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
COMPONENTS
Identifier for the averaging over componentsprivate static java.lang.String
MODE
Identifier for the computing modeprivate static java.lang.String
NONINFINITEDISTANCES
Identifier for the harmonic mean mode -
Constructor Summary
Constructors Constructor Description ASLGridSearch()
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,GraphMetricFunction<U>>
grid(Grid grid)
Obtains the different global graph metrics to compute in a grid.java.util.Map<java.lang.String,java.util.function.Supplier<GraphMetric<U>>>
grid(Grid grid, DistanceCalculator<U> distCalc)
Obtains the different vertex metrics to compute in a grid.
-
Field Details
-
MODE
private static final java.lang.String MODEIdentifier for the computing mode- See Also:
- Constant Field Values
-
NONINFINITEDISTANCES
private static final java.lang.String NONINFINITEDISTANCESIdentifier for the harmonic mean mode- See Also:
- Constant Field Values
-
COMPONENTS
private static final java.lang.String COMPONENTSIdentifier for the averaging over components- See Also:
- Constant Field Values
-
-
Constructor Details
-
ASLGridSearch
public ASLGridSearch()
-
-
Method Details
-
grid
public java.util.Map<java.lang.String,java.util.function.Supplier<GraphMetric<U>>> grid(Grid grid, DistanceCalculator<U> distCalc)Description copied from interface:GraphMetricGridSearch
Obtains the different vertex metrics to compute in a grid.- Specified by:
grid
in interfaceGraphMetricGridSearch<U>
- Parameters:
grid
- the grid for the metric.distCalc
- a distance calculator.- Returns:
- the grid parameters.
-
grid
Description copied from interface:GraphMetricGridSearch
Obtains the different global graph metrics to compute in a grid.- Specified by:
grid
in interfaceGraphMetricGridSearch<U>
- Parameters:
grid
- the grid for the metric.- Returns:
- the grid parameters.
-