public abstract class SingleSourceSearchAlgorithm<R extends SearchResult> extends GrphAlgorithm<R[]>
Constructor and Description |
---|
SingleSourceSearchAlgorithm() |
Modifier and Type | Method and Description |
---|---|
R[] |
compute(Grph g) |
R[] |
compute(Grph g,
Grph.DIRECTION d,
toools.collections.primitive.LucIntSet sources) |
R |
compute(Grph g,
int source) |
R |
compute(Grph g,
int source,
GraphSearchListener listener) |
abstract R |
compute(Grph g,
int source,
Grph.DIRECTION d,
GraphSearchListener listener) |
R[] |
compute(Grph g,
toools.collections.primitive.LucIntSet sources) |
DistanceMatrix |
computeDistanceMatrix(Grph g) |
PredecessorMatrix |
computePredecessorMatrix(Grph g) |
protected abstract R[] |
createArray(int i) |
cacheResultForGraph, getSourceCode
public R[] compute(Grph g)
compute
in class GrphAlgorithm<R extends SearchResult[]>
public R[] compute(Grph g, Grph.DIRECTION d, toools.collections.primitive.LucIntSet sources)
protected abstract R[] createArray(int i)
public R compute(Grph g, int source, GraphSearchListener listener)
public abstract R compute(Grph g, int source, Grph.DIRECTION d, GraphSearchListener listener)
public PredecessorMatrix computePredecessorMatrix(Grph g)
public DistanceMatrix computeDistanceMatrix(Grph g)