Fixed compile error in saveGraph

release/4.3a0
Frank Dellaert 2012-06-07 13:16:49 +00:00
parent 8644f81dc8
commit b01ab6e642
1 changed files with 3 additions and 3 deletions

View File

@ -81,9 +81,9 @@ namespace gtsam {
string parent = out.str();
parent += "[label=\"";
BOOST_FOREACH(boost::shared_ptr<CONDITIONAL> 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();
}