diff --git a/gtsam/sfm/mfas.cpp b/gtsam/sfm/mfas.cpp index 4ac1783e3..4764f2703 100644 --- a/gtsam/sfm/mfas.cpp +++ b/gtsam/sfm/mfas.cpp @@ -6,9 +6,8 @@ All rights reserved. */ -#include "mfas.h" +#include -#include #include #include #include @@ -54,16 +53,6 @@ void mfasRatio(const std::vector &edges, onbrs[i].push_back(pair(j, w)); } - for (auto &node : nodes) { - std::cout << node << " " << win_deg[node] << " " << wout_deg[node] - << std::endl; - for (auto it = inbrs[node].begin(); it != inbrs[node].end(); it++) - std::cout << it->first << "," << it->second << " "; - std::cout << std::endl; - for (auto it = onbrs[node].begin(); it != onbrs[node].end(); it++) - std::cout << it->first << "," << it->second << " "; - std::cout << std::endl; - } unsigned int ordered_count = 0; while (ordered_count < nodes.size()) { // choose an unchosen node @@ -84,7 +73,6 @@ void mfasRatio(const std::vector &edges, } } } - std::cout << "choice is " << choice << std::endl; // find its inbrs, adjust their wout_deg for (auto it = inbrs[choice].begin(); it != inbrs[choice].end(); ++it) wout_deg[it->first] -= it->second; diff --git a/gtsam/sfm/tests/testMFAS.cpp b/gtsam/sfm/tests/testMFAS.cpp index 83c03925b..d5daee1a6 100644 --- a/gtsam/sfm/tests/testMFAS.cpp +++ b/gtsam/sfm/tests/testMFAS.cpp @@ -1,9 +1,7 @@ +#include + #include -#include - -#include "gtsam/sfm/mfas.h" - using namespace std; using namespace gtsam;