Class DFSFinishTimeIterator<T>

    • Constructor Detail

      • DFSFinishTimeIterator

        public DFSFinishTimeIterator()
    • Method Detail

      • init

        protected void init​(Graph<T> G,
                            Iterator<? extends T> nodes)
        Subclasses must call this in the constructor!
        Parameters:
        G -
        nodes -
      • hasNext

        public boolean hasNext()
        Return whether there are any more nodes left to enumerate.
        Specified by:
        hasNext in interface Iterator<T>
        Returns:
        true if there nodes left to enumerate.
      • getConnected

        protected Iterator<T> getConnected​(T n)
        get the out edges of a given node
        Parameters:
        n - the node of which to get the out edges
        Returns:
        the out edges