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