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

Function label_with_outbound

tests/test_lang_contract.c:168–182  ·  view source on GitHub ↗

Count nodes of `label` with >=1 outbound edge. Returns -1 on query error. */

Source from the content-addressed store, hash-verified

166
167/* Count nodes of `label` with >=1 outbound edge. Returns -1 on query error. */
168static int label_with_outbound(cbm_store_t *store, const char *project, const char *label) {
169 cbm_search_params_t p = {0};
170 p.project = project;
171 p.label = label;
172 p.min_degree = 1;
173 p.max_degree = -1;
174 p.limit = 50;
175 cbm_search_output_t out = {0};
176 int n = -1;
177 if (cbm_store_search(store, &p, &out) == CBM_STORE_OK) {
178 n = out.count;
179 }
180 cbm_store_search_free(&out);
181 return n;
182}
183
184/* Callables (Function OR Method) that have >=1 outbound edge — the cross-language
185 * "calls are attributed to the calling routine, not lumped on the file/Module

Callers 1

callables_with_outboundFunction · 0.85

Calls 2

cbm_store_searchFunction · 0.85
cbm_store_search_freeFunction · 0.85

Tested by

no test coverage detected