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

Function Path_New

src/datatypes/path/path.c:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "../../util/rmalloc.h"
10
11Path *Path_New(size_t len) {
12 Path *path = rm_malloc(sizeof(Path));
13 path->edges = array_new(Edge, len);
14 path->nodes = array_new(Node, len + 1);
15 return path;
16}
17
18void Path_EnsureLen(Path *p, size_t len) {
19 p->nodes = array_ensure_len(p->nodes, len);

Callers 5

SinglePairCtx_NewFunction · 0.85
SingleSourceCtx_NewFunction · 0.85
AllPathsCtx_NewFunction · 0.85
SIPathBuilder_NewFunction · 0.85
test_pathFunction · 0.85

Calls 1

rm_mallocFunction · 0.85

Tested by 1

test_pathFunction · 0.68