public class TraversalUtil
extends java.lang.Object
| Constructor and Description |
|---|
TraversalUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <V extends Vertex,E extends Edge<V>> |
circularNoCrossingsPath(V v1,
V v2,
java.util.Map<V,java.util.List<E>> adj,
boolean debug,
java.util.List<V> excluding,
java.util.List<E> excludingEdges)
Finds a path from one vertex to another such that the there are no back edges
and no edge crossings.
|
public static <V extends Vertex,E extends Edge<V>> java.util.List<E> circularNoCrossingsPath(V v1, V v2, java.util.Map<V,java.util.List<E>> adj, boolean debug, java.util.List<V> excluding, java.util.List<E> excludingEdges)
V - The vertex typeE - The edge typev1 - Start vertexv2 - Destination vertexadj - Adjacency mapdebug - Indicator if debug information should be shownexcluding - Vertices that cannot be of the pathexcludingEdges - Edges that cannot be of the path