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

Method named_tuple_get

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

Adds a node to the parent graph that extracts an element of a named tuple associated with the node. Applies [Graph::named_tuple_get] to the parent graph, `this` node and the `key` string. # Example ``` # use ciphercore_base::graphs::create_context; # use ciphercore_base::data_types::{array_type, INT32}; let c = create_context().unwrap(); let g = c.create_graph().unwrap(); let t1 = array_type(ve

(&self, key: String)

Source from the content-addressed store, hash-verified

1118 /// let n4 = n3.named_tuple_get("node2".to_owned()).unwrap();
1119 /// ```
1120 pub fn named_tuple_get(&self, key: String) -> Result<Node> {
1121 self.get_graph().named_tuple_get(self.clone(), key)
1122 }
1123
1124 /// Adds a node to the parent graph that extracts an element of a vector associated with the node.
1125 ///

Callers 15

test_wellformed_casesFunction · 0.45
instantiateMethod · 0.45
test_helperFunction · 0.45
compute_naive_aucFunction · 0.45
get_columnFunction · 0.45
sum_named_columnsFunction · 0.45
random_pad_columnsFunction · 0.45
get_equality_graphFunction · 0.45

Calls 3

cloneMethod · 0.80
add_nodeMethod · 0.80
get_graphMethod · 0.45

Tested by 10

test_wellformed_casesFunction · 0.36
test_helperFunction · 0.36
test_permutationFunction · 0.36
test_duplicationFunction · 0.36
test_sortFunction · 0.36