Class NeighborArray


  • public class NeighborArray
    extends Object
    NeighborArray encodes the neighbors of a node and their mutual scores in the HNSW graph as a pair of growable arrays.
    NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
    • Method Detail

      • add

        public void add​(int newNode,
                        float newScore)
      • size

        public int size()
      • node

        public int[] node()
        Direct access to the internal list of node ids; provided for efficient writing of the graph
        NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
      • clear

        public void clear()