Package org.codehaus.plexus.util.dag
Class CycleDetector
java.lang.Object
org.codehaus.plexus.util.dag.CycleDetector
- Author:
- Michal Maczka
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintroducesCycle(Vertex vertex) introducesCycle(Vertex vertex, Map<Vertex, Integer> vertexStateMap) This method will be called when an edge 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
- 
Constructor Details- 
CycleDetectorpublic CycleDetector()
 
- 
- 
Method Details- 
hasCycle
- 
introducesCycleThis method will be called when an edge 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- Parameters:
- vertex- the vertex
- vertexStateMap- the vertex Map
- Returns:
- the found cycle
 
- 
introducesCycle
 
-