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

Method graph_count

graphlite/src/storage/multi_graph.rs:180–185  ·  view source on GitHub ↗

Get the number of graphs

(&self)

Source from the content-addressed store, hash-verified

178
179 /// Get the number of graphs
180 pub fn graph_count(&self) -> usize {
181 match self.graphs.read() {
182 Ok(graphs) => graphs.len(),
183 Err(_) => 0,
184 }
185 }
186}
187
188impl Default for MultiGraphManager {

Callers 1

get_cache_statsMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected