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

Function _AllPathsCtx_AddConnectionToLevel

src/algorithms/all_paths.c:29–36  ·  view source on GitHub ↗

Append given 'node' to given 'level' array.

Source from the content-addressed store, hash-verified

27
28// Append given 'node' to given 'level' array.
29static void _AllPathsCtx_AddConnectionToLevel(AllPathsCtx *ctx, uint level, Node *node,
30 Edge *edge) {
31 ASSERT(level < array_len(ctx->levels));
32 LevelConnection connection;
33 connection.node = *node;
34 if(edge) connection.edge = *edge;
35 array_append(ctx->levels[level], connection);
36}
37
38// Check to see if context levels array has entries at position 'level'.
39static bool _AllPathsCtx_LevelNotEmpty(const AllPathsCtx *ctx, uint level) {

Callers 3

addOutgoingNeighborsFunction · 0.85
addIncomingNeighborsFunction · 0.85
AllPathsCtx_NewFunction · 0.85

Calls 1

array_lenFunction · 0.85

Tested by

no test coverage detected