org.codehaus.plexus.util.dag
Class CycleDetector
java.lang.Object
org.codehaus.plexus.util.dag.CycleDetector
public class CycleDetector
- extends Object
- Version:
- $Id$
- Author:
- Michal Maczka
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CycleDetector
public CycleDetector()
hasCycle
public static List hasCycle(DAG graph)
introducesCycle
public 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
- Parameters:
vertex
- vertexStateMap
-
- Returns:
introducesCycle
public static List introducesCycle(Vertex vertex)
Copyright © 2001-2012 Codehaus. All Rights Reserved.