Class BreadthFirstIterator<V,E extends DefaultEdge>

java.lang.Object
org.apache.calcite.util.graph.BreadthFirstIterator<V,E>
Type Parameters:
V - Vertex type
E - Edge type
All Implemented Interfaces:
Iterator<V>

public class BreadthFirstIterator<V,E extends DefaultEdge> extends Object implements Iterator<V>
Iterates over the vertices in a directed graph in breadth-first order.
  • Constructor Details

    • BreadthFirstIterator

      public BreadthFirstIterator(DirectedGraph<V,E> graph, V root)
  • Method Details