28293031323334
*/ public class DirectedDepthFirstTopologicalIterator extends DirectedBreadthFirstTopologicalIterator { protected Queue buildQueue(Graph graph) { return(new Stack(graph.getNodes().size())); }
49505152535455
* @param graph The graph of the iteration. * * @return A Last In First Out queue (Stack) */ protected Queue buildQueue(Graph graph) { return(new Stack(graph.getNodes().size())); }
52535455565758
* @param graph The Graph whose components are being iterated over. * * @return A last in first out queue (a stack) */ protected Queue buildQueue(Graph graph) { return(new Stack(graph.getNodes().size())); }