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

Method has_edge

graphlite/src/storage/graph_cache.rs:196–198  ·  view source on GitHub ↗

Check if an edge exists

(&self, edge_id: &str)

Source from the content-addressed store, hash-verified

194
195 /// Check if an edge exists
196 pub fn has_edge(&self, edge_id: &str) -> Result<bool, GraphError> {
197 Ok(self.edges.contains_key(edge_id))
198 }
199
200 /// Get node count
201 pub fn node_count(&self) -> Result<usize, GraphError> {

Callers 1

union_graphsMethod · 0.80

Calls 1

contains_keyMethod · 0.45

Tested by

no test coverage detected