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

Function _add_path

src/procedures/proc_ss_paths.c:584–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584static void inline _add_path
585(
586 heap_t **heap,
587 WeightedPath *p
588) {
589 WeightedPath *pp = rm_malloc(sizeof(WeightedPath));
590 pp->path = Path_Clone(p->path);
591 pp->weight = p->weight;
592 pp->cost = p->cost;
593 Heap_offer(heap, pp);
594}
595
596// find k minimal weighted path (path can have different weight)
597static void SSpaths_k_minimal

Callers 1

SSpaths_k_minimalFunction · 0.70

Calls 3

rm_mallocFunction · 0.85
Path_CloneFunction · 0.85
Heap_offerFunction · 0.85

Tested by

no test coverage detected