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

Method add_graph

graphlite/src/exec/executor.rs:637–641  ·  view source on GitHub ↗

Add a new graph

(&self, name: String, graph: GraphCache)

Source from the content-addressed store, hash-verified

635
636 /// Add a new graph
637 pub fn add_graph(&self, name: String, graph: GraphCache) -> Result<(), ExecutionError> {
638 self.storage
639 .save_graph(&name, graph)
640 .map_err(|e| ExecutionError::StorageError(format!("Failed to save graph: {}", e)))
641 }
642
643 /// Get a graph by name (readonly)
644 pub fn get_graph(&self, name: &str) -> Result<Arc<GraphCache>, ExecutionError> {

Callers

nothing calls this directly

Calls 2

StorageErrorEnum · 0.85
save_graphMethod · 0.80

Tested by

no test coverage detected