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

Method get_main_graph

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

Returns the main graph of the context if it is already set. # Returns Main graph of the context

(&self)

Source from the content-addressed store, hash-verified

4029 ///
4030 /// Main graph of the context
4031 pub fn get_main_graph(&self) -> Result<Graph> {
4032 match &self.body.borrow().main_graph {
4033 Some(g) => Ok(g.upgrade()),
4034 None => Err(runtime_error!("main graph is not set")),
4035 }
4036 }
4037
4038 /// Returns the number of graphs contained in this context.
4039 ///

Callers 15

evaluate_contextMethod · 0.45
run_instantiation_passFunction · 0.45
make_serializableMethod · 0.45
custom_reduce_vec_helperFunction · 0.45
custom_reduce_helperFunction · 0.45
test_well_behavedFunction · 0.45
test_broadcast_divisorFunction · 0.45
test_broadcast_dividendFunction · 0.45
long_division_helperFunction · 0.45
binary_helperFunction · 0.45

Calls 1

upgradeMethod · 0.80

Tested by 15

test_well_behavedFunction · 0.36
test_broadcast_divisorFunction · 0.36
test_broadcast_dividendFunction · 0.36
binary_helperFunction · 0.36
arithmetic_helperFunction · 0.36
test_helperFunction · 0.36
test_well_formedFunction · 0.36
test_vectorFunction · 0.36
test_helperFunction · 0.36
test_well_behavedFunction · 0.36