Count nodes of `label` with >=1 outbound edge. Returns -1 on query error. */
| 166 | |
| 167 | /* Count nodes of `label` with >=1 outbound edge. Returns -1 on query error. */ |
| 168 | static 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 |
no test coverage detected