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

Method add_node

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

Add a node to the graph.

(mut self, node: ProvenanceNode)

Source from the content-addressed store, hash-verified

118
119 /// Add a node to the graph.
120 pub fn add_node(mut self, node: ProvenanceNode) -> Self {
121 self.nodes.push(node);
122 self
123 }
124
125 /// Set all nodes at once.
126 pub fn nodes(mut self, nodes: Vec<ProvenanceNode>) -> Self {

Calls 1

pushMethod · 0.45