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

Method get_current_graph_mut

graphlite/src/session/models.rs:525–531  ·  view source on GitHub ↗

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

(&mut self)

Source from the content-addressed store, hash-verified

523 /// Get a mutable reference to the current graph
524 #[allow(dead_code)] // ROADMAP v0.2.0 - Session management for multi-user support (see ROADMAP.md §2)
525 pub fn get_current_graph_mut(&mut self) -> Option<&mut GraphCache> {
526 if let Some(graph_name) = &self.current_graph {
527 self.graphs.get_mut(graph_name)
528 } else {
529 None
530 }
531 }
532
533 /// Get a reference to the current graph
534 #[allow(dead_code)] // ROADMAP v0.2.0 - Session management for multi-user support (see ROADMAP.md §2)

Callers

nothing calls this directly

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected