MCPcopy Create free account
hub / github.com/cosdata/cosdata / is_neighbors_empty

Method is_neighbors_empty

src/models/prob_node.rs:308–313  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

306 }
307
308 pub fn is_neighbors_empty(&self) -> bool {
309 let _lock = self.freeze();
310 self.neighbors
311 .iter()
312 .all(|neighbor| neighbor.load(Ordering::Relaxed).is_null())
313 }
314
315 pub fn remove_neighbor_by_index_and_id(&self, index: u8, id: InternalId) {
316 let _lock = self.lowest_index.write();

Callers 1

delete_embeddingFunction · 0.80

Calls 3

freezeMethod · 0.80
loadMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected