Count edges of a given type in the project graph. Returns -1 on query error. */
| 152 | |
| 153 | /* Count edges of a given type in the project graph. Returns -1 on query error. */ |
| 154 | static inline int rh_count_edges(cbm_store_t *store, const char *project, const char *edge) { |
| 155 | return store ? cbm_store_count_edges_by_type(store, project, edge) : -1; |
| 156 | } |
| 157 | |
| 158 | /* Count nodes carrying `label`. Returns -1 on query error. */ |
| 159 | static inline int rh_count_label(cbm_store_t *store, const char *project, const char *label) { |
no test coverage detected