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