MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / retrieve_node

Method retrieve_node

ciphercore-base/src/graphs.rs:1533–1535  ·  view source on GitHub ↗

Applies [Context::retrieve_node] to the parent context and `this` graph. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{BIT, scalar_type}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let n = g.input(scalar_type(BIT)).unwrap(); n.set_name("input_node").unwrap(); assert!(n == g.retrieve_node("input_node").unwrap()); ```

(&self, name: &str)

Source from the content-addressed store, hash-verified

1531 /// assert!(n == g.retrieve_node("input_node").unwrap());
1532 /// ```
1533 pub fn retrieve_node(&self, name: &str) -> Result<Node> {
1534 self.get_context().retrieve_node(self.clone(), name)
1535 }
1536
1537 /// Adds an input node to the graph and returns it.
1538 ///

Callers 10

get_class_from_nameFunction · 0.45
test_duplicationFunction · 0.45
helper_one_inputFunction · 0.45
helper_create_opsFunction · 0.45
test_inline_call_simpleFunction · 0.45
test_inline_iterateFunction · 0.45
test_dangling_nodesFunction · 0.45
test_some_dupsFunction · 0.45

Calls 4

cloneMethod · 0.80
get_contextMethod · 0.45
get_idMethod · 0.45
getMethod · 0.45

Tested by 7

test_duplicationFunction · 0.36
test_inline_call_simpleFunction · 0.36
test_inline_iterateFunction · 0.36
test_dangling_nodesFunction · 0.36
test_some_dupsFunction · 0.36