Class DFSIterator

java.lang.Object
org.graph4j.traversal.DFSIterator
All Implemented Interfaces:
Iterator<SearchNode>

public class DFSIterator extends Object implements Iterator<SearchNode>
A depth first search (DFS) iterator over the vertices of the graph.
Author:
Cristian Frăsinaru
  • Constructor Details

    • DFSIterator

      public DFSIterator(Graph graph)
      Parameters:
      graph - the input graph.
    • DFSIterator

      public DFSIterator(Graph graph, int start)
      Parameters:
      graph - the input graph.
      start - the start vertex number.
  • Method Details