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

Method new

graphlite/src/storage/multi_graph.rs:32–36  ·  view source on GitHub ↗

Create a new multi-graph manager

()

Source from the content-addressed store, hash-verified

30impl MultiGraphManager {
31 /// Create a new multi-graph manager
32 pub fn new() -> Self {
33 Self {
34 graphs: Arc::new(RwLock::new(HashMap::new())),
35 }
36 }
37
38 /// Add a new graph with the given name
39 pub fn add_graph(&self, name: String, graph: GraphCache) -> Result<(), StorageError> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected