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

Method is_edge_alive

atomic-core/src/output/alive/retrieve/options.rs:197–199  ·  view source on GitHub ↗

Check if a forward edge should be followed during traversal. A `BlockDeleted` / `FolderDeleted` edge is **never** an alive forward edge. In the additive model a deletion is recorded by adding a new edge with the `DELETED` flag *alongside* the original `Block`/`Folder` edge — the original stays in the B-tree forever. Reachability of the destination always comes from the original edge, which is f

(&self, edge: &ForwardEdge)

Source from the content-addressed store, hash-verified

195 /// edges via [`Self::is_vertex_alive`] — that path correctly distinguishes
196 /// "deletion happened from our view" from "deletion is invisible".
197 pub fn is_edge_alive(&self, edge: &ForwardEdge) -> bool {
198 !edge.kind.is_deleted()
199 }
200
201 /// Check if a vertex is alive by examining all its parent edges.
202 ///

Callers 1

retrieve_graphFunction · 0.80

Calls 1

is_deletedMethod · 0.45

Tested by

no test coverage detected