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

Function _add_path

src/procedures/proc_sp_paths.c:593–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593static void inline _add_path
594(
595 heap_t **heap,
596 WeightedPath *p
597) {
598 WeightedPath *pp = rm_malloc(sizeof(WeightedPath));
599 pp->path = Path_Clone(p->path);
600 pp->weight = p->weight;
601 pp->cost = p->cost;
602 Heap_offer(heap, pp);
603}
604
605// find k minimal weighted path (path can have different weight)
606static void SPpaths_k_minimal

Callers 1

SPpaths_k_minimalFunction · 0.70

Calls 3

rm_mallocFunction · 0.85
Path_CloneFunction · 0.85
Heap_offerFunction · 0.85

Tested by

no test coverage detected