Reversed saving of nodes

release/4.3a0
Frank Dellaert 2012-09-15 02:53:06 +00:00
parent 8d85d679cd
commit 60da4cb2f9
1 changed files with 7 additions and 9 deletions

View File

@ -74,15 +74,13 @@ namespace gtsam {
std::ofstream of(s.c_str()); std::ofstream of(s.c_str());
of << "digraph G{\n"; of << "digraph G{\n";
BOOST_FOREACH(typename CONDITIONAL::shared_ptr conditional, conditionals_) { BOOST_REVERSE_FOREACH(typename CONDITIONAL::shared_ptr conditional, conditionals_) {
typename CONDITIONAL::Frontals frontals = conditional->frontals(); typename CONDITIONAL::Frontals frontals = conditional->frontals();
Index me = frontals.front(); Index me = frontals.front();
// of << me << std::endl; typename CONDITIONAL::Parents parents = conditional->parents();
typename CONDITIONAL::Parents parents = conditional->parents(); BOOST_FOREACH(Index p, parents)
BOOST_FOREACH(Index p, parents) of << p << "->" << me << std::endl;
of << p << "->" << me << std::endl; }
}
of << "}"; of << "}";
of.close(); of.close();