|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShortestPathAlg<NumType extends Comparable<NumType>>
The basic interface for the various kinds of shortest path algorithms.
Method Summary | |
---|---|
boolean |
getCalcLengthOnly()
Return the value of the flag which enables/disables the calculation of the actual paths. |
void |
setAlgebra(PathAlgebra<NumType> algebra)
Define the operations which are used to calculate the distance of a node to the source. |
void |
setCalcLengthOnly(boolean calcLengthOnly)
Enable/disable the calculation of the actual paths. |
void |
setEdgeWeightMap(FixedEdgeMap<NumType> edgeWeights)
Set the weights of the edges of the graph. |
Methods inherited from interface net.sourceforge.combean.interfaces.graph.alg.GraphAlgorithm |
---|
getGraph, run, setGraph |
Method Detail |
---|
void setAlgebra(PathAlgebra<NumType> algebra)
algebra
- the path algebra containing the required operationsvoid setEdgeWeightMap(FixedEdgeMap<NumType> edgeWeights)
edgeWeights
- the map of the weights of the edges in the graph.void setCalcLengthOnly(boolean calcLengthOnly)
calcLengthOnly
- the new value of the calcLengthOnly flag.boolean getCalcLengthOnly()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |