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

Method add_edge

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

Add an edge to the graph.

(mut self, edge: ProvenanceEdge)

Source from the content-addressed store, hash-verified

105
106 /// Add an edge to the graph.
107 pub fn add_edge(mut self, edge: ProvenanceEdge) -> Self {
108 self.edges.push(edge);
109 self
110 }
111
112 /// Set all edges at once.
113 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