|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchord.util.graph.CycleTestingSCCVisitor<Node>
public class CycleTestingSCCVisitor<Node>
A visitor over the Strongly Connected Components (SCCs) of a directed graph that checks for cycles in the graph.
The visitor visits each SCC of the graph and terminates by
throwing an GraphEntityVisitorException as soon as it
detects a cycle, namely, if it visits an SCC containing more than
one node or an SCC containing a single node with a self-loop.
| Constructor Summary | |
|---|---|
CycleTestingSCCVisitor(IGraph<Node> graph)
|
|
| Method Summary | |
|---|---|
void |
epilogue()
Method called just after finishing visiting all nodes of an entity. |
void |
prologue()
Method called just before starting to visit any node of an entity. |
void |
visit(Node node)
Method called while visiting each node of an entity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CycleTestingSCCVisitor(IGraph<Node> graph)
| Method Detail |
|---|
public void prologue()
IGraphEntityVisitor
prologue in interface IGraphEntityVisitor<Node>public void visit(Node node)
IGraphEntityVisitor
visit in interface IGraphEntityVisitor<Node>node - The visited node.public void epilogue()
IGraphEntityVisitor
epilogue in interface IGraphEntityVisitor<Node>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||