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

Method clear

graphlite/src/storage/graph_cache.rs:375–382  ·  view source on GitHub ↗

Clear all data from the graph

(&mut self)

Source from the content-addressed store, hash-verified

373
374 /// Clear all data from the graph
375 pub fn clear(&mut self) {
376 self.nodes.clear();
377 self.edges.clear();
378 self.node_labels.clear();
379 self.edge_labels.clear();
380 self.adjacency_out.clear();
381 self.adjacency_in.clear();
382 }
383}
384
385impl Default for GraphCache {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected