com.ptc.windchill.upgrade.ius
Class DependencyGraphModel.CycleDetector
java.lang.Object
com.ptc.windchill.upgrade.ius.DependencyGraphModel.CycleDetector
- Enclosing class:
- DependencyGraphModel
- private class DependencyGraphModel.CycleDetector
- extends Object
Searches for cycles in the dependency graph.
Currently, it is a brute force search with recursively traverses
from each node along all possible paths to graph leaves. If a cycle
is detected in this recursion, then an exception will be thrown.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
edgeStack_
private Stack edgeStack_
rootNode_
private DependencyGraphModel.Node rootNode_
nodeSet_
private HashSet nodeSet_
DependencyGraphModel.CycleDetector
public DependencyGraphModel.CycleDetector()
- Create an instance.
checkForCycles
public void checkForCycles()
throws DependencyException
- Perform the check.
- Throws:
DependencyException
checkForCycleFrom
private void checkForCycleFrom(DependencyGraphModel.Node node)
throws DependencyException
- Throws:
DependencyException
recursivelyCheckForCycleFrom
private void recursivelyCheckForCycleFrom(DependencyGraphModel.Node node)
throws DependencyException
- Throws:
DependencyException