From b01ab6e64271172f31b5039d19ea3b46277f3993 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Thu, 7 Jun 2012 13:16:49 +0000 Subject: [PATCH] Fixed compile error in saveGraph --- gtsam/inference/BayesTree-inl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gtsam/inference/BayesTree-inl.h b/gtsam/inference/BayesTree-inl.h index 9a6b1478e..0aefeaa19 100644 --- a/gtsam/inference/BayesTree-inl.h +++ b/gtsam/inference/BayesTree-inl.h @@ -81,9 +81,9 @@ namespace gtsam { string parent = out.str(); parent += "[label=\""; - BOOST_FOREACH(boost::shared_ptr c, clique->conditionals_) { + BOOST_FOREACH(Index index, clique->conditional_->frontals()) { if(!first) parent += ","; first = false; - parent += (string(c->key())).c_str(); + parent += (boost::format("%1%")%index).str();; } if( clique != root_){ @@ -92,7 +92,7 @@ namespace gtsam { } first = true; - BOOST_FOREACH(Index sep, clique->separator_) { + BOOST_FOREACH(Index sep, clique->conditional_->parents()) { if(!first) parent += ","; first = false; parent += (boost::format("%1%")%sep).str(); }