src/main/java/org/jboss/util/graph/Graph.java
/**
    * Perform a breadth first search of this graph, starting at v.
    * 
    * @param v - the search starting point
    * @param visitor - the vistor whose vist method is called prior
    * to visting a vertex.
    */
Perform a breadth first search of this graph, starting at v.

@param v - the search starting point
@param visitor - the vistor whose vist method is called prior
to visting a vertex.
Perform a breadth first search of this graph starting at v . @param v - the search starting point @param visitor - the vistor whose vist method is called prior to visting a vertex .
public void breadthFirstSearch(Vertex<T> v, final Visitor<T> visitor)
   {
      VisitorEX<T, RuntimeException> wrapper = new VisitorEX<T, RuntimeException>()
      {
         public void visit(Graph<T> g, Vertex<T> v) throws RuntimeException
         {
            if (visitor != null)
               visitor.visit(g, v);
         }
      };
      this.breadthFirstSearch(v, wrapper);
   }
public void breadthFirstSearch ( Vertex < T > v , final Visitor < T > visitor ) { VisitorEX < T , RuntimeException > wrapper = new VisitorEX < T , RuntimeException > ( ) { public void visit ( Graph < T > g , Vertex < T > v ) throws RuntimeException { if ( visitor != null ) visitor . visit ( g , v ) ; } } ; this . breadthFirstSearch ( v , wrapper ) ; }
Perform a breadth first search of this graph, starting at v.
Perform a breadth first search of this graph starting at v .