kruskal_mst
and prim_mst
return different types from SimpleWeightedGraph
input
#17
Labels
breaking
Fixing this would require a breaking change
The
kruskal_mst
function may contain some logic that theprim_mst
function lacks. When I supply aSimpleWeightedGraph
as input, thekruskal_mst
function returns a vector ofSimpleWeightedEdge
. By contrast, theprim_mst
function returns a vector ofSimpleEdge
instead. The behavior ofkruskal_mst
seems more beneficial, to me. Here is a small example:The text was updated successfully, but these errors were encountered: