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

Method calculate_cascade_depth

graphlite/src/cache/invalidation.rs:385–396  ·  view source on GitHub ↗
(
        &self,
        initial: &HashSet<String>,
        cascaded: &HashSet<String>,
    )

Source from the content-addressed store, hash-verified

383 }
384
385 fn calculate_cascade_depth(
386 &self,
387 initial: &HashSet<String>,
388 cascaded: &HashSet<String>,
389 ) -> usize {
390 if cascaded.is_empty() {
391 0
392 } else {
393 // Simplified - would need proper depth tracking
394 (cascaded.len() as f64 / initial.len() as f64).ceil() as usize
395 }
396 }
397
398 fn dependency_key(&self, dependency_type: &DependencyType) -> String {
399 match dependency_type {

Callers 1

handle_eventMethod · 0.80

Calls 2

is_emptyMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected