diff --git a/gtsam/inference/BayesTree.h b/gtsam/inference/BayesTree.h index e88dd8ade..14eb6f5fb 100644 --- a/gtsam/inference/BayesTree.h +++ b/gtsam/inference/BayesTree.h @@ -276,6 +276,10 @@ namespace gtsam { // this subtree into the elimination. this->keys_.assign(clique->conditional()->beginParents(), clique->conditional()->endParents()); } + + void print(const std::string& s="", const KeyFormatter& formatter = DefaultKeyFormatter) const { + clique->print(s + "stored clique", formatter); + } }; } /// namespace gtsam