public class CycleDetector extends Object
Constructor and Description |
---|
CycleDetector() |
Modifier and Type | Method and Description |
---|---|
static List |
hasCycle(DAG graph) |
static List |
introducesCycle(Vertex vertex) |
static List |
introducesCycle(Vertex vertex,
Map vertexStateMap)
This method will be called when an egde leading to given vertex was added
and we want to check if introduction of this edge has not resulted
in apparition of cycle in the graph
|
public static List introducesCycle(Vertex vertex, Map vertexStateMap)
vertex
- vertexStateMap
- Copyright © 2001-2012 Codehaus. All Rights Reserved.