MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / bfs_rows_next

Function bfs_rows_next

src/store/store.c:7684–7690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7682}
7683
7684static cbm_node_hop_t *bfs_rows_next(bfs_rows_t *rows) {
7685 if (rows->count >= rows->cap) {
7686 rows->cap *= ST_GROWTH;
7687 rows->visited = safe_realloc(rows->visited, rows->cap * sizeof(cbm_node_hop_t));
7688 }
7689 return &rows->visited[rows->count++];
7690}
7691
7692/* The recursive CTE: trail (relationship-unique, for Cypher) or shortest-path. */
7693static int bfs_visit_sql(cbm_store_t *s, const bfs_query_t *q, bfs_rows_t *rows, int *cte_rows,

Callers 2

bfs_visit_sqlFunction · 0.85
bfs_visit_memFunction · 0.85

Calls 1

safe_reallocFunction · 0.85

Tested by

no test coverage detected