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

Method add_node

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

Add a node to the graph.

(mut self, node: ProvenanceNode)

Source from the content-addressed store, hash-verified

93
94 /// Add a node to the graph.
95 pub fn add_node(mut self, node: ProvenanceNode) -> Self {
96 self.nodes.push(node);
97 self
98 }
99
100 /// Set all nodes at once.
101 pub fn nodes(mut self, nodes: Vec<ProvenanceNode>) -> Self {

Callers 6

sample_graphFunction · 0.80
test_node_with_detailFunction · 0.80

Calls 1

pushMethod · 0.45

Tested by 6

sample_graphFunction · 0.64
test_node_with_detailFunction · 0.64