MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / hot_node_count

Method hot_node_count

nodedb-graph/src/csr/memory.rs:32–34  ·  view source on GitHub ↗

Number of hot nodes (access count > 0).

(&self)

Source from the content-addressed store, hash-verified

30
31 /// Number of hot nodes (access count > 0).
32 pub fn hot_node_count(&self) -> usize {
33 self.access_counts.iter().filter(|c| c.get() > 0).count()
34 }
35
36 /// Current query epoch (incremented per traversal call).
37 pub fn query_epoch(&self) -> u64 {

Callers

nothing calls this directly

Calls 3

countMethod · 0.45
iterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected