public static < V , E extends DirectedEdge < V > > void traverse ( Graph < V , E > graph , DFSVisitor < V , E > visitor ) { MultiSourceDFS . traverse ( graph , graph . getVertices ( ) , visitor ) ; }
Remember that visiting order is not ordered .