Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ max_neighbors
Method
max_neighbors
nodedb-vector/src/codec_index/graph.rs:133–135 ·
view source on GitHub ↗
Max neighbors allowed at `layer`.
(&self, layer: usize)
Source
from the content-addressed store, hash-verified
131
132
/// Max neighbors allowed at `layer`.
133
pub(crate) fn max_neighbors(&self, layer: usize) -> usize {
134
if layer == 0 { self.m0 } else { self.m }
135
}
136
}
137
138
#[cfg(test)]
Callers
1
insert
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected