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

Function graph_nodes

atomic-canonical/src/prov.rs:240–245  ·  view source on GitHub ↗
(value: &Value)

Source from the content-addressed store, hash-verified

238 }
239
240 fn graph_nodes(value: &Value) -> &Vec<Value> {
241 value
242 .get("@graph")
243 .and_then(Value::as_array)
244 .expect("@graph is an array")
245 }
246
247 fn node_of_type<'a>(value: &'a Value, ty: &str) -> &'a Value {
248 graph_nodes(value)

Callers 1

node_of_typeFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected