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

Method stats

graphlite/src/storage/graph_cache.rs:345–352  ·  view source on GitHub ↗

Get graph statistics

(&self)

Source from the content-addressed store, hash-verified

343
344 /// Get graph statistics
345 pub fn stats(&self) -> GraphStats {
346 GraphStats {
347 node_count: self.nodes.len(),
348 edge_count: self.edges.len(),
349 node_label_count: self.node_labels.len(),
350 edge_label_count: self.edge_labels.len(),
351 }
352 }
353
354 /// Check if the graph contains a node
355 pub fn contains_node(&self, node_id: &str) -> bool {

Callers 1

save_graph_by_pathMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected