Class HnswGraph.NodesIterator

All Implemented Interfaces:
Iterator<Integer>, PrimitiveIterator<Integer,IntConsumer>, PrimitiveIterator.OfInt
Enclosing class:

public static final class HnswGraph.NodesIterator extends Object implements PrimitiveIterator.OfInt
Iterator over the graph nodes on a certain level, Iterator also provides the size – the total number of nodes to be iterated over.
  • Constructor Details

    • NodesIterator

      public NodesIterator(int[] nodes, int size)
      Constructor for iterator based on the nodes array up to the size
    • NodesIterator

      public NodesIterator(int size)
      Constructor for iterator based on the size
  • Method Details