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

Method get_graph_annotations

ciphercore-base/src/graphs.rs:4553–4563  ·  view source on GitHub ↗
(&self, graph: Graph)

Source from the content-addressed store, hash-verified

4551 }
4552
4553 fn get_graph_annotations(&self, graph: Graph) -> Result<Vec<GraphAnnotation>> {
4554 if graph.get_context() != *self {
4555 return Err(runtime_error!("The graph is in a different context"));
4556 }
4557 let cell = self.body.borrow();
4558 Ok(cell
4559 .graphs_annotations
4560 .get(&graph.get_id())
4561 .cloned()
4562 .unwrap_or_default())
4563 }
4564
4565 pub(super) fn downgrade(&self) -> WeakContext {
4566 WeakContext {

Callers 1

get_annotationsMethod · 0.80

Calls 3

get_contextMethod · 0.45
getMethod · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected