| 1873 | } |
| 1874 | |
| 1875 | static void dk_hub_push(CBMArena *a, dk_hub_edges_t *l, const cbm_gbuf_edge_t *e, const char *tag) { |
| 1876 | dk_hub_edge_t *v = dk_grow(a, l->v, l->n, &l->cap, sizeof(*v)); |
| 1877 | if (!v) { |
| 1878 | return; |
| 1879 | } |
| 1880 | l->v = v; |
| 1881 | l->v[l->n++] = (dk_hub_edge_t){e, |
| 1882 | e->source_id, |
| 1883 | e->target_id, |
| 1884 | cbm_arena_strdup(a, e->type), |
| 1885 | cbm_arena_strdup(a, e->properties_json), |
| 1886 | cbm_arena_strdup(a, tag), |
| 1887 | -1}; |
| 1888 | } |
| 1889 | |
| 1890 | /* Is an edge of `type` with properties `p` a reference to an image -- |
| 1891 | * USAGE {ref:image}, or DEPENDS_ON {via:from|copy-from}? */ |
no test coverage detected