MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / add_node

Method add_node

tests/fixtures/sample.rs:20–22  ·  view source on GitHub ↗
(&mut self, id: String)

Source from the content-addressed store, hash-verified

18 }
19
20 fn add_node(&mut self, id: String) {
21 self.nodes.insert(id, vec![]);
22 }
23
24 fn add_edge(&mut self, src: String, tgt: String) {
25 self.nodes.entry(src).or_default().push(tgt);

Callers 15

build_from_jsonFunction · 0.95
build_graphFunction · 0.95
to_htmlFunction · 0.95
_tiny_graphFunction · 0.95
_writeFunction · 0.95
_write_calls_graphFunction · 0.95
_build_mixed_graphFunction · 0.95
_graphFunction · 0.95
_graphFunction · 0.95

Calls 1

insertMethod · 0.80