MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / has_node

Method has_node

graphlite/src/storage/graph_cache.rs:186–188  ·  view source on GitHub ↗

Check if a node exists

(&self, node_id: &str)

Source from the content-addressed store, hash-verified

184
185 /// Check if a node exists
186 pub fn has_node(&self, node_id: &str) -> Result<bool, GraphError> {
187 Ok(self.nodes.contains_key(node_id))
188 }
189
190 /// Check if the graph is empty (no nodes and no edges)
191 pub fn is_empty(&self) -> bool {

Callers 1

union_graphsMethod · 0.80

Calls 1

contains_keyMethod · 0.45

Tested by

no test coverage detected