remove commented code section

release/4.3a0
Ankur Roy Chowdhury 2023-01-24 09:57:12 -08:00
parent 3b2fe0a585
commit 64267a3d8d
1 changed files with 0 additions and 32 deletions

View File

@ -78,22 +78,6 @@ TEST(kruskal, GaussianFactorGraph)
const auto mstEdgeIndices = utils::kruskal(g, forward_ordering, weights); const auto mstEdgeIndices = utils::kruskal(g, forward_ordering, weights);
// auto PrintMst = [](const auto &graph, const auto &mst_edge_indices)
// {
// std::cout << "MST Edge indices are: \n";
// for (const auto &edge : mst_edge_indices)
// {
// std::cout << edge << " : ";
// for (const auto &key : graph[edge]->keys())
// {
// std::cout << gtsam::DefaultKeyFormatter(gtsam::Symbol(key)) << ", ";
// }
// std::cout << "\n";
// }
// };
// PrintMst(g, mstEdgeIndices);
EXPECT(mstEdgeIndices[0] == 0); EXPECT(mstEdgeIndices[0] == 0);
EXPECT(mstEdgeIndices[1] == 1); EXPECT(mstEdgeIndices[1] == 1);
EXPECT(mstEdgeIndices[2] == 2); EXPECT(mstEdgeIndices[2] == 2);
@ -111,22 +95,6 @@ TEST(kruskal, NonlinearFactorGraph)
const auto mstEdgeIndices = utils::kruskal(g, forward_ordering, weights); const auto mstEdgeIndices = utils::kruskal(g, forward_ordering, weights);
// auto PrintMst = [](const auto &graph, const auto &mst_edge_indices)
// {
// std::cout << "MST Edge indices are: \n";
// for (const auto &edge : mst_edge_indices)
// {
// std::cout << edge << " : ";
// for (const auto &key : graph[edge]->keys())
// {
// std::cout << gtsam::DefaultKeyFormatter(gtsam::Symbol(key)) << ", ";
// }
// std::cout << "\n";
// }
// };
// PrintMst(g, mstEdgeIndices);
EXPECT(mstEdgeIndices[0] == 0); EXPECT(mstEdgeIndices[0] == 0);
EXPECT(mstEdgeIndices[1] == 1); EXPECT(mstEdgeIndices[1] == 1);
EXPECT(mstEdgeIndices[2] == 2); EXPECT(mstEdgeIndices[2] == 2);