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

Method get_or_create_graph

graphlite/src/session/models.rs:557–559  ·  view source on GitHub ↗

ROADMAP v0.2.0 - Session management for multi-user support (see ROADMAP.md §2)

(&mut self, name: &str)

Source from the content-addressed store, hash-verified

555 /// Create or get a graph by name
556 #[allow(dead_code)] // ROADMAP v0.2.0 - Session management for multi-user support (see ROADMAP.md §2)
557 pub fn get_or_create_graph(&mut self, name: &str) -> &mut GraphCache {
558 self.graphs.entry(name.to_string()).or_default()
559 }
560}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected