| 582 | } |
| 583 | |
| 584 | static 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) |
| 597 | static void SSpaths_k_minimal |
no test coverage detected