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

Function Path_Clone

src/datatypes/path/path.c:81–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81Path *Path_Clone(const Path *p) {
82 Path *clone = rm_malloc(sizeof(Path));
83 array_clone(clone->nodes, p->nodes);
84 array_clone(clone->edges, p->edges);
85 return clone;
86}
87
88void Path_Reverse(Path *p) {
89 array_reverse(p->nodes);

Callers 10

SPpaths_all_minimalFunction · 0.85
SPpaths_single_minimalFunction · 0.85
_add_pathFunction · 0.85
SPpaths_k_minimalFunction · 0.85
SSpaths_all_minimalFunction · 0.85
SSpaths_single_minimalFunction · 0.85
_add_pathFunction · 0.85
SSpaths_k_minimalFunction · 0.85
SIPath_NewFunction · 0.85
test_pathFunction · 0.85

Calls 1

rm_mallocFunction · 0.85

Tested by 1

test_pathFunction · 0.68