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

Method neighbors

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

Immutable view of the adjacency list for the node at `idx`.

(&self, idx: usize)

Source from the content-addressed store, hash-verified

78
79 /// Immutable view of the adjacency list for the node at `idx`.
80 pub fn neighbors(&self, idx: usize) -> &[u32] {
81 &self.nodes[idx].neighbors
82 }
83
84 /// External ID of the node at `idx`.
85 pub fn external_id(&self, idx: usize) -> u64 {

Callers 4

build_vamanaFunction · 0.45
beam_searchFunction · 0.45

Calls

no outgoing calls

Tested by 1