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

Method add_edge

atomic-core/src/change/provenance_graph/builder.rs:132–135  ·  view source on GitHub ↗

Add an edge to the graph.

(mut self, edge: ProvenanceEdge)

Source from the content-addressed store, hash-verified

130
131 /// Add an edge to the graph.
132 pub fn add_edge(mut self, edge: ProvenanceEdge) -> Self {
133 self.edges.push(edge);
134 self
135 }
136
137 /// Set all edges at once.
138 pub fn edges(mut self, edges: Vec<ProvenanceEdge>) -> Self {

Callers 2

sample_graphFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 2

sample_graphFunction · 0.64