MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / invalidate_caches

Method invalidate_caches

core/src/graph/workflow_graph.rs:77–82  ·  view source on GitHub ↗

Invalidate caches when graph structure changes

(&mut self)

Source from the content-addressed store, hash-verified

75
76 /// Invalidate caches when graph structure changes
77 fn invalidate_caches(&mut self) {
78 self.dependencies_cache.clear();
79 self.dependents_cache.clear();
80 self.root_nodes_cache = None;
81 self.leaf_nodes_cache = None;
82 }
83
84 /// Refresh outgoing/incoming adjacency maps from canonical `edges`.
85 fn refresh_adjacency_from_edges(&mut self) {

Callers 4

rebuild_graphMethod · 0.80
add_nodeMethod · 0.80
add_edgeMethod · 0.80
remove_nodeMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected