|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CycleInPredMapDetectionAlg
An algorithm to detect a cycle in a graph given by a predecessor map (occurs as subproblem when negative cycles in shortest path trees shall be identified).
Method Summary | |
---|---|
boolean |
cycleFound()
Check whether a cycle has been found (must be called after run()). |
FixedPath |
getCycle()
Retrieve the cycle that has been found. |
void |
setPathForCycle(Path p)
Optional. |
void |
setPredMap(FixedNodeMap predMap)
The predecessor map defining the graph where the cycle shall be found. |
void |
setSingleStartNode(Node startNode)
Search for cycles starting from a single start node. |
Methods inherited from interface net.sourceforge.combean.interfaces.graph.alg.GraphAlgorithm |
---|
getGraph, run, setGraph |
Method Detail |
---|
void setPredMap(FixedNodeMap predMap)
predMap
- a node map which contains the predecessor of every node
(or null of a node has no predecessor)void setSingleStartNode(Node startNode)
startNode
- the node where the search for cycles shall be startedvoid setPathForCycle(Path p)
p
- the path where the cycle shall be storedboolean cycleFound()
FixedPath getCycle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |