MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / edges_to

Method edges_to

atomic-core/src/change/provenance_graph/mod.rs:392–394  ·  view source on GitHub ↗

Find all edges targeting a node.

(&self, node_id: &str)

Source from the content-addressed store, hash-verified

390
391 /// Find all edges targeting a node.
392 pub fn edges_to(&self, node_id: &str) -> Vec<&ProvenanceEdge> {
393 self.edges.iter().filter(|e| e.to == node_id).collect()
394 }
395
396 /// Walk backward from a node through its causal chain.
397 ///

Callers 1

test_edges_toFunction · 0.80

Calls 1

iterMethod · 0.45

Tested by 1

test_edges_toFunction · 0.64