Wrote exceptions, factorgraph unit tests and several other improvements
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 6 Apr 2010 15:37:28 +0000 (17:37 +0200)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Tue, 6 Apr 2010 15:37:28 +0000 (17:37 +0200)
commit7c10623441931ca9a2ccba233b05ea9077a75775
treeb6f050a3e24e2e488c6ed88271440f9667f45d50
parent41b42a63d729c76080ae603e0288e6c8c57a7d72
Wrote exceptions, factorgraph unit tests and several other improvements

* Wrote exceptions.h/cpp unit tests
* Wrote factorgraph.h/cpp unit tests
* Improved bipgraph.h/cpp:
  - Added BipartiteGraph::operator==( const BipartiteGraph& )
  - Added BipartiteGraph( size_t nr1, size_t nr2 ) constructor
* Improved graph.h/cpp:
  - Added GraphAL::operator==( const GraphAL& )
* Improved smallset.h/cpp:
  - Added SmallSet& insert( const T& t )
* Improved factorgraph.h/factorgraph.cpp:
  - FactorGraph::clamped() now contains a delta factor for the clamped variable
  - Renamed FactorGraph::Cliques() into FactorGraph::maximalFactorDomains()
  - Added FactorGraph::MarkovGraph()
  - Fixed bug in FactorGraph::clone()
  - FactorGraph::findVars( const VarSet& ) now returns a SmallSet<size_t>
    and its argument now has a const-qualifier (which fixes a small bug)
  - Made previously public member G private and added the bipGraph() method,
    which offers read-only access to it
16 files changed:
ChangeLog
Makefile
include/dai/bipgraph.h
include/dai/exceptions.h
include/dai/factorgraph.h
include/dai/graph.h
include/dai/smallset.h
src/factorgraph.cpp
src/hak.cpp
tests/unit/bipgraph.cpp
tests/unit/exceptions.cpp [new file with mode: 0644]
tests/unit/factorgraph.cpp [new file with mode: 0644]
tests/unit/graph.cpp
tests/unit/prob.cpp
tests/unit/smallset.cpp
tests/unit/weightedgraph.cpp