MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / add_edge

Function add_edge

tests/test_store_impact.c:24–27  ·  view source on GitHub ↗

`from` depends on `to`: the edge the walk follows backwards. */

Source from the content-addressed store, hash-verified

22
23/* `from` depends on `to`: the edge the walk follows backwards. */
24static void add_edge(cbm_store_t *s, int64_t from, int64_t to, const char *type) {
25 cbm_edge_t e = {.project = "test", .source_id = from, .target_id = to, .type = type};
26 (void)cbm_store_insert_edge(s, &e);
27}
28
29static cbm_store_t *new_store(void) {
30 cbm_store_t *s = cbm_store_open_memory();

Callers 2

build_diamondFunction · 0.85

Calls 1

cbm_store_insert_edgeFunction · 0.85

Tested by

no test coverage detected