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

Method add_edge

atomic-core/src/output/alive/retrieve/tests.rs:47–52  ·  view source on GitHub ↗
(&mut self, source: GraphNode<NodeId>, flags: EdgeFlags, dest: Position<NodeId>)

Source from the content-addressed store, hash-verified

45
46impl FaultGraphTxn {
47 fn add_edge(&mut self, source: GraphNode<NodeId>, flags: EdgeFlags, dest: Position<NodeId>) {
48 self.edges
49 .entry(source)
50 .or_default()
51 .push(SerializedGraphEdge::new(flags, dest, NodeId::new(99)));
52 }
53
54 fn resolve_block(&mut self, pos: Position<NodeId>, node: GraphNode<NodeId>) {
55 self.blocks.insert(pos, node);

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected