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

Method node_id

nodedb/src/engine/graph/olap/snapshot.rs:185–190  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

183 }
184
185 pub fn node_id(&self, name: &str) -> Option<LocalNodeId> {
186 self.node_to_id
187 .get(name)
188 .copied()
189 .map(|raw| LocalNodeId::new(raw, self.partition_tag))
190 }
191
192 /// Out-degree of a node in the snapshot.
193 pub fn out_degree(&self, node: LocalNodeId) -> usize {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected