public class StackBasedBellmanFordAlgorithm extends WeightedSingleSourceSearchAlgorithm
Constructor and Description |
---|
StackBasedBellmanFordAlgorithm(NumericalProperty weightProperty) |
Modifier and Type | Method and Description |
---|---|
SearchResult |
compute(Grph graph,
int source,
Grph.DIRECTION direction,
GraphSearchListener listener) |
protected SearchResult[] |
createArray(int n) |
static void |
main(java.lang.String[] args) |
getWeightProperty
compute, compute, compute, compute, compute, computeDistanceMatrix, computePredecessorMatrix
cacheResultForGraph, getSourceCode
public StackBasedBellmanFordAlgorithm(NumericalProperty weightProperty)
public SearchResult compute(Grph graph, int source, Grph.DIRECTION direction, GraphSearchListener listener)
compute
in class SingleSourceSearchAlgorithm<SearchResult>
protected SearchResult[] createArray(int n)
createArray
in class SingleSourceSearchAlgorithm<SearchResult>
public static void main(java.lang.String[] args)