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

Method is_empty

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

Returns `true` if the graph has no nodes.

(&self)

Source from the content-addressed store, hash-verified

55
56 /// Returns `true` if the graph has no nodes.
57 pub fn is_empty(&self) -> bool {
58 self.nodes.is_empty()
59 }
60
61 /// Add a node with the given external ID; returns its internal index.
62 pub fn add_node(&mut self, id: u64) -> usize {

Callers 6

patchMethod · 0.45
local_selectivity_atFunction · 0.45
navix_searchFunction · 0.45
acorn_searchFunction · 0.45
beam_searchFunction · 0.45

Calls

no outgoing calls

Tested by 1