Add a new graph
(&self, name: String, graph: GraphCache)
| 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> { |
nothing calls this directly
no test coverage detected