Skip to content

Prim refine#15

Merged
pratzl merged 3 commits intomainfrom
prim_refine
Mar 15, 2026
Merged

Prim refine#15
pratzl merged 3 commits intomainfrom
prim_refine

Conversation

@pratzl
Copy link
Collaborator

@pratzl pratzl commented Mar 15, 2026

Update prim(() to use dijkstra_shortest_paths() and reduce overloads

pratzl added 3 commits March 14, 2026 20:25
…im() parameters: (g, seed, predecessor, weight, ...)\n- Replace hand-rolled priority queue with dijkstra delegation\n using prim_combine = [](EV, EV w_uv) -> EV { return w_uv; }\n- Align initialization contract with dijkstra: simple overload\n calls init_shortest_paths(); full overload requires pre-init\n- Use adjacency_list + vertex_property_map concepts (generic)\n- Eliminate init_dist parameter\n- Update all test and example call sites"
Remove the simple prim(g, seed, predecessor, weight) overload and add a
default WF parameter to the full overload that returns edge_value(g, uv).
All callers now consistently must call init_shortest_paths() before prim().
@pratzl pratzl merged commit 325c324 into main Mar 15, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant