fromGraph
fun fromGraph(scorerSupplier: RandomVectorScorerSupplier, beamWidth: Int, seed: Long, initializerGraph: HnswGraph, newOrdMap: IntArray, initializedNodes: BitSet, totalNumberOfVectors: Int): InitializedHnswGraphBuilder
Create a new HnswGraphBuilder that is initialized with the provided HnswGraph.
Return
a new HnswGraphBuilder that is initialized with the provided HnswGraph
Parameters
scorerSupplier
the scorer to use for vectors
beamWidth
the number of nodes to explore in the search
seed
the seed for the random number generator
initializerGraph
the graph to initialize the new graph builder
newOrdMap
a mapping from the old node ordinal to the new node ordinal
initializedNodes
a bitset of nodes that are already initialized in the initializerGraph
totalNumberOfVectors
the total number of vectors in the new graph, this should include all vectors expected to be added to the graph in the future
Throws
IOException
when reading the graph fails