Improved clustergraph.h/cpp code and wrote unit tests
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Wed, 7 Apr 2010 10:38:43 +0000 (12:38 +0200)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Wed, 7 Apr 2010 10:38:43 +0000 (12:38 +0200)
commit4f9f0666b22746a67d189ccc8b1778d06ef052f6
tree3a51b3c701260c52c821e499fd5dce71dd467ecb
parent7c10623441931ca9a2ccba233b05ea9077a75775
Improved clustergraph.h/cpp code and wrote unit tests

* Improved clustergraph.h/clustergraph.cpp:
  - Made (previously public) members G, vars and clusters private and added
    bipGraph(), vars() and clusters() methods which offer read-only access to
    these members.
  - Deprecated toVector()
  - Added nrVars() method
  - Renamed size() method into nrClusters()
  - Added var( size_t ) method
  - Added cluster( size_t ) method
ChangeLog
Makefile
include/dai/clustergraph.h
include/dai/prob.h
src/clustergraph.cpp
src/jtree.cpp
src/regiongraph.cpp
tests/unit/clustergraph.cpp [new file with mode: 0644]