public abstract class GraphTraversal extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
OK |
static int |
TERMINATEDBYVISITOR |
| Constructor and Description |
|---|
GraphTraversal(Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
abstract List |
traverse(Vertex startat)
Abstract traversal method to be implemented by subclasses.
|
abstract int |
traverse(Vertex startat,
List visited,
Visitor visitor)
Abstract traversal method to be implemented by subclasses.
|
abstract List |
traverse(Vertex startat,
Visitor visitor)
Abstract traversal method to be implemented by subclasses.
|
public static final int TERMINATEDBYVISITOR
public static final int OK
public GraphTraversal(Graph graph)
public abstract int traverse(Vertex startat, List visited, Visitor visitor)
startat - The vertex from which traversal will start.visitor - Visitor object controlling if and when traversal will stop,
apart from having visited all the vertices.visited - A List of vertices that has been visited in sequence by the traversalpublic abstract List traverse(Vertex startat)
startat - The vertex from which traversal will start.public abstract List traverse(Vertex startat, Visitor visitor)
startat - The vertex from which traversal will start.visitor - Visitor object controlling if and when traversal will stop,
apart from having visited all the vertices.Copyright © 2019 JULIE Lab, Germany. All rights reserved.