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

Function label_with_outbound

tests/test_lang_contract.c:169–183  ·  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

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