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

Method get_graph_names

graphlite/src/storage/multi_graph.rs:93–100  ·  view source on GitHub ↗

Get all graph names

(&self)

Source from the content-addressed store, hash-verified

91
92 /// Get all graph names
93 pub fn get_graph_names(&self) -> Result<Vec<String>, StorageError> {
94 let graphs = self
95 .graphs
96 .read()
97 .map_err(|e| StorageError::LockError(format!("Failed to acquire read lock: {}", e)))?;
98
99 Ok(graphs.keys().cloned().collect())
100 }
101
102 /// Remove a graph by name
103 pub fn remove_graph(&self, name: &str) -> Result<(), StorageError> {

Callers 3

executeMethod · 0.45

Calls

no outgoing calls

Tested by 1