Interface GraphIndex.View<T>

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
OnDiskGraphIndex.OnDiskView
Enclosing interface:
GraphIndex<T>

public static interface GraphIndex.View<T> extends AutoCloseable
  • Method Details

    • getNeighborsIterator

      NodesIterator getNeighborsIterator(int node)
      Iterator over the neighbors of a given node. Only the most recently instantiated iterator is guaranteed to be valid.
    • size

      int size()
    • entryNode

      int entryNode()
    • getVector

      T getVector(int node)
      Retrieve the vector associated with a given node.

      This will only be called when a search is performed using approximate similarities. In that situation, we will want to reorder the results by the exact similarity at the end of the search.

    • getSortedNodes

      default int[] getSortedNodes()
    • getNeighborCount

      default int getNeighborCount(int node)