MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / _SinglePairCtx_AddConnectionToLevel

Function _SinglePairCtx_AddConnectionToLevel

src/procedures/proc_sp_paths.c:139–151  ·  view source on GitHub ↗

append given 'node' to given 'level' array.

Source from the content-addressed store, hash-verified

137
138// append given 'node' to given 'level' array.
139static void _SinglePairCtx_AddConnectionToLevel
140(
141 SinglePairCtx *ctx,
142 uint level,
143 Node *node,
144 Edge *edge
145) {
146 ASSERT(level < array_len(ctx->levels));
147 LevelConnection connection;
148 connection.node = *node;
149 if(edge) connection.edge = *edge;
150 array_append(ctx->levels[level], connection);
151}
152
153static void SinglePairCtx_New
154(

Callers 3

SinglePairCtx_NewFunction · 0.85
addOutgoingNeighborsFunction · 0.85
addIncomingNeighborsFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected