MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / iter

Method iter

nodedb-vector/src/vamana/graph.rs:90–92  ·  view source on GitHub ↗

Iterate over all nodes as `(internal_index, &VamanaNode)`.

(&self)

Source from the content-addressed store, hash-verified

88
89 /// Iterate over all nodes as `(internal_index, &VamanaNode)`.
90 pub fn iter(&self) -> impl Iterator<Item = (usize, &VamanaNode)> {
91 self.nodes.iter().enumerate()
92 }
93}
94
95#[cfg(test)]

Callers 15

batch_distancesFunction · 0.45
adaptive_searchFunction · 0.45
pickMethod · 0.45
search_returns_k_resultsFunction · 0.45
trainMethod · 0.45
addMethod · 0.45
searchMethod · 0.45
nearest_centroidMethod · 0.45
kmeans_centroidsFunction · 0.45
train_and_searchFunction · 0.45

Calls

no outgoing calls