Skip to content

Commit

Permalink
add edge in disconnected graph test
Browse files Browse the repository at this point in the history
  • Loading branch information
bobluppes committed Sep 28, 2023
1 parent 3747d27 commit af5607e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/graaflib/algorithm/minimum_spanning_tree_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ TEST(PrimMstTest, DisconnectedGraph) {
graph_t graph{};
const auto start_vertex{graph.add_vertex(10)};
[[maybe_unused]] const auto vertex_1{graph.add_vertex(20)};
[[maybe_unused]] const auto vertex_2{graph.add_vertex(30)};

graph.add_edge(start_vertex, vertex_1, 100);

// WHEN
const auto mst{prim_minimum_spanning_tree(graph, start_vertex)};
Expand Down

0 comments on commit af5607e

Please sign in to comment.