Some improvements to jtree and regiongraph and started work on regiongraph unit tests
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Wed, 7 Apr 2010 18:40:38 +0000 (20:40 +0200)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Wed, 7 Apr 2010 18:40:38 +0000 (20:40 +0200)
commitf56886c9b0676e9b198cbb90d7a942304498df33
tree198b91a5c17119f9599d4211f366e91ab099ecc9
parent4f9f0666b22746a67d189ccc8b1778d06ef052f6
Some improvements to jtree and regiongraph and started work on regiongraph unit tests

* Improved jtree.h/cpp:
  - changed JTree::construct( const std::vector<VarSet>&, bool ) into
    JTree::construct( const FactorGraph&, const std::vector<VarSet>&, bool )
  - changed JTree::GenerateJT( const std::vector<VarSet> & )
    into JTree::GenerateJT( const FactorGraph &, const std::vector<VarSet> & )
* Improved regiongraph.h/cpp:
  - Made (previously public) members RegionGraph::G, RegionGraph::ORs,
    RegionGraph::IRs and RegionGraph::fac2OR protected.
  - Removed partial constructor RegionGraph::RegionGraph( const FactorGraph& fg )
  - Added some error checking code
12 files changed:
ChangeLog
Makefile
include/dai/jtree.h
include/dai/regiongraph.h
include/dai/smallset.h
include/dai/treeep.h
src/hak.cpp
src/jtree.cpp
src/regiongraph.cpp
src/treeep.cpp
tests/unit/factor.cpp
tests/unit/regiongraph.cpp [new file with mode: 0644]