public abstract class AbstractBreadthFirstTraversal<Node> extends AbstractBreadthFirstThrowingTraversal<Node,RuntimeException>
AbstractBreadthFirstThrowingTraversal.StaticBreadthFirstTraversal<Node>, AbstractBreadthFirstThrowingTraversal.Visitor<Node,E extends Throwable>
Constructor and Description |
---|
AbstractBreadthFirstTraversal(Iterable<? extends Node> initialNodes) |
AbstractBreadthFirstTraversal(Node initialNode) |
Modifier and Type | Method and Description |
---|---|
static <Node> void |
traverse(Iterable<? extends Node> initialNodes,
AbstractBreadthFirstThrowingTraversal.Visitor<Node,RuntimeException> visitor)
Traverse a graph without explicitly creating a
new
AbstractBreadthFirstThrowingTraversal and overriding AbstractBreadthFirstThrowingTraversal.visit(Object) |
static <Node> void |
traverse(Node initialNode,
AbstractBreadthFirstThrowingTraversal.Visitor<Node,RuntimeException> visitor)
Traverse a graph without explicitly creating a
new
AbstractBreadthFirstThrowingTraversal and overriding AbstractBreadthFirstThrowingTraversal.visit(Object) |
onComplete, start, visit
public AbstractBreadthFirstTraversal(Node initialNode)
public static <Node> void traverse(Node initialNode, AbstractBreadthFirstThrowingTraversal.Visitor<Node,RuntimeException> visitor)
new
AbstractBreadthFirstThrowingTraversal
and overriding AbstractBreadthFirstThrowingTraversal.visit(Object)
visitor
- Typically a lambda expressionpublic static <Node> void traverse(Iterable<? extends Node> initialNodes, AbstractBreadthFirstThrowingTraversal.Visitor<Node,RuntimeException> visitor)
new
AbstractBreadthFirstThrowingTraversal
and overriding AbstractBreadthFirstThrowingTraversal.visit(Object)
visitor
- Typically a lambda expression