Pervasive change of BipartiteGraph implementation
authorJoris Mooij <jorism@marvin.jorismooij.nl>
Mon, 8 Sep 2008 14:14:10 +0000 (16:14 +0200)
committerJoris Mooij <jorism@marvin.jorismooij.nl>
Mon, 8 Sep 2008 14:14:10 +0000 (16:14 +0200)
commit7e77161d381c0062fb7159276d09633a0cce6a63
treee66395a41aaad3635585b318069db72d6f0ee8fc
parent2e902b1b0b90158b1d434cfc2c2f3ce27fbd9912
Pervasive change of BipartiteGraph implementation

- Added conditional compilation of inference methods
- New implementation of BipartiteGraph: it does not store the
node properties anymore, and nor does it store an adjacency
matrix. Instead, it stores lists of neighbors. An easy way
of iterating over neighbors is to use boost::foreach.
- Interface changes in FactorGraph:
  * delta(const Var &) -> delta(size_t)
  * Delta(const Var &) -> Delta(size_t)
  * makeCavity(const Var &) -> makeCavity(size_t)
  * removed MakeFactorCavity(size_t)
  * removed ExactMarginal(const VarSet &)
  * removed ExactlogZ()
  * removed isConnected() (moved to BipartiteGraph)
  * vars() -> vars
  * factors() -> factors
- Interface changes in RegionGraph:
  * nr_ORs() -> nrORs()
  * nr_IRs() -> nrIRs()
  * ORs() -> ORs
  * IRs() -> IRs
- Fixed typo in utils/fg2dot.cpp
27 files changed:
Makefile
include/dai/alldai.h
include/dai/bipgraph.h
include/dai/bp.h
include/dai/daialg.h
include/dai/factorgraph.h
include/dai/hak.h
include/dai/jtree.h
include/dai/lc.h
include/dai/mf.h
include/dai/regiongraph.h
include/dai/treeep.h
include/dai/util.h
src/alldai.cpp
src/bp.cpp
src/factorgraph.cpp
src/hak.cpp
src/jtree.cpp
src/lc.cpp
src/mf.cpp
src/mr.cpp
src/properties.cpp
src/regiongraph.cpp
src/treeep.cpp
utils/createfg.cpp
utils/fg2dot.cpp
utils/fginfo.cpp