Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
bobluppes committed Sep 28, 2023
1 parent af5607e commit 9169029
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/graaflib/algorithm/minimum_spanning_tree.tpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,6 @@ std::optional<std::vector<edge_id_t>> prim_minimum_spanning_tree(
fringe_vertices.insert(mst_edge.second);
}

// If our tree does not cover all vertices in the graph it is not a spanning
// tree
if (fringe_vertices.size() != graph.vertex_count()) {
return std::nullopt;
}

return edges_in_mst;
}

Expand Down

0 comments on commit 9169029

Please sign in to comment.