True when the edge's props JSON carries the given strategy. */
| 58 | |
| 59 | /* True when the edge's props JSON carries the given strategy. */ |
| 60 | static bool edge_has_strategy(const cbm_gbuf_edge_t *e, const char *strategy) { |
| 61 | char needle[64]; |
| 62 | snprintf(needle, sizeof(needle), "\"strategy\":\"%s\"", strategy); |
| 63 | return e && e->properties_json && strstr(e->properties_json, needle) != NULL; |
| 64 | } |
| 65 | |
| 66 | /* Total REFERENCES_FILE edge count. */ |
| 67 | static int ref_edge_count(cbm_gbuf_t *gb) { |