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

Method has_graph

graphlite/src/storage/multi_graph.rs:82–90  ·  view source on GitHub ↗

Check if a graph exists

(&self, name: &str)

Source from the content-addressed store, hash-verified

80
81 /// Check if a graph exists
82 pub fn has_graph(&self, name: &str) -> bool {
83 match self.graphs.read() {
84 Ok(graphs) => graphs.contains_key(name),
85 Err(e) => {
86 warn!("Failed to check graph existence: {}", e);
87 false
88 }
89 }
90 }
91
92 /// Get all graph names
93 pub fn get_graph_names(&self) -> Result<Vec<String>, StorageError> {

Callers

nothing calls this directly

Calls 1

contains_keyMethod · 0.45

Tested by

no test coverage detected