Class LexBFSIteratorInt

java.lang.Object
org.graph4j.traversal.LexBFSIteratorInt
All Implemented Interfaces:
IntIterator

@Deprecated public class LexBFSIteratorInt extends Object implements IntIterator
Deprecated.
A variant of LexBFS that returns vertex numbers instead of SearchNode objects.
Author:
Cristian Frăsinaru
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Creates an iterator starting with the first vertex of the graph (the one at index 0)
    LexBFSIteratorInt(Graph graph, int start)
    Deprecated.
    Creates an iterator starting with the specified vertex.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated.
    Returns true if the iteration has more elements.
    int
    Deprecated.
    Returns the next element in the iteration.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.graph4j.util.IntIterator

    remove
  • Constructor Details

    • LexBFSIteratorInt

      public LexBFSIteratorInt(Graph graph)
      Deprecated.
      Creates an iterator starting with the first vertex of the graph (the one at index 0)
      Parameters:
      graph - the input graph.
    • LexBFSIteratorInt

      public LexBFSIteratorInt(Graph graph, int start)
      Deprecated.
      Creates an iterator starting with the specified vertex.
      Parameters:
      graph - the input graph.
      start - the start vertex number.
      Throws:
      InvalidVertexException - if the graph does not contain the start vertex.
  • Method Details

    • hasNext

      public boolean hasNext()
      Deprecated.
      Description copied from interface: IntIterator
      Returns true if the iteration has more elements.
      Specified by:
      hasNext in interface IntIterator
      Returns:
      true if the iteration has more elements, false otherwise.
    • next

      public int next()
      Deprecated.
      Description copied from interface: IntIterator
      Returns the next element in the iteration.
      Specified by:
      next in interface IntIterator
      Returns:
      the next element in the iteration.