diff --git a/gtsam/inference/ClusterTree-inst.h b/gtsam/inference/ClusterTree-inst.h index ad7ab0063..1987a0a5a 100644 --- a/gtsam/inference/ClusterTree-inst.h +++ b/gtsam/inference/ClusterTree-inst.h @@ -122,10 +122,8 @@ namespace gtsam void ClusterTree::Cluster::print( const std::string& s, const KeyFormatter& keyFormatter) const { - std::cout << s; - BOOST_FOREACH(Key j, orderedFrontalKeys) - std::cout << j << " "; - std::cout << "problemSize = " << problemSize_ << std::endl; + std::cout << s << " (" << problemSize_ << ")" ; + PrintKeyVector(orderedFrontalKeys); } /* ************************************************************************* */