|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclassycle.graph.GraphProcessor
classycle.graph.LongestWalkProcessor
public class LongestWalkProcessor
Calculates for each vertex the longest walk. This processor assumes that the graph has no cycles.
| Constructor Summary | |
|---|---|
LongestWalkProcessor()
|
|
| Method Summary | |
|---|---|
protected void |
finishProcessing(Vertex[] graph)
Finishes processing by sorting the result in accordance with the walk length. |
protected void |
initializeProcessing(Vertex[] graph)
Does nothing. |
protected void |
processAfter(Vertex vertex)
Deactivate the specified vertex. |
protected void |
processArc(Vertex tail,
Vertex head)
Processes arc from tail to head. |
protected void |
processBefore(Vertex vertex)
Resets the specified vertex. |
| Methods inherited from class classycle.graph.GraphProcessor |
|---|
deepSearchFirst, process |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongestWalkProcessor()
| Method Detail |
|---|
protected void initializeProcessing(Vertex[] graph)
initializeProcessing in class GraphProcessorprotected void processBefore(Vertex vertex)
processBefore in class GraphProcessorvertex - Vertex to be processed.
java.lang.IllegalArgumentException - if vertex is not an instance
of StrongComponent.
protected void processArc(Vertex tail,
Vertex head)
processArc in class GraphProcessortail - Tail vertex of the arc.head - Head vertex of the arc.
java.lang.IllegalArgumentException - if both vertices are not instances
of StrongComponent or if head is visited and
active which indicates a cycle in the graph.protected void processAfter(Vertex vertex)
processAfter in class GraphProcessorvertex - Vertex to be processed.
java.lang.IllegalArgumentException - if vertex is not an instance
of StrongComponent.protected void finishProcessing(Vertex[] graph)
finishProcessing in class GraphProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||