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

Function label_with_outbound

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

157
158/* Count nodes of `label` with >=1 outbound edge. Returns -1 on query error. */
159static int label_with_outbound(cbm_store_t *store, const char *project, const char *label) {
160 cbm_search_params_t p = {0};
161 p.project = project;
162 p.label = label;
163 p.min_degree = 1;
164 p.max_degree = -1;
165 p.limit = 50;
166 cbm_search_output_t out = {0};
167 int n = -1;
168 if (cbm_store_search(store, &p, &out) == CBM_STORE_OK) {
169 n = out.count;
170 }
171 cbm_store_search_free(&out);
172 return n;
173}
174
175/* Callables (Function OR Method) that have >=1 outbound edge — the cross-language
176 * "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