Miscellaneous improvements to regiongraph, factorgraph and bipgraph, and finished regiongraph unit tests
* Improved regiongraph.h/cpp:
- Renamed RegionGraph::calcCountingNumbers() into
RegionGraph::calcCVMCountingNumbers() and made it protected, because
exposing it to the world serves no purpose.
- Added RegionGraph::DAG() accessor which returns a reference to the
region graph DAG structure (currently implemented as a BipartiteGraph)
- Made RegionGraph::RecomputeORs(), RegionGraph::RecomputeORs( const VarSet& )
and RegionGraph::RecomputeOR( size_t ) protected and renamed them by changing
the "Recompute" into "recompute", because exposing them to the world serves no
purpose.
- RegionGraph::WriteToFile( const char* ), RegionGraph::ReadFromFile( const char * )
and RegionGraph::printDot( std::ostream& ) incorrectly called their respective
FactorGraph ancestor methods; this has been corrected by letting them throw a
NOT_IMPLEMENTED exception.
- Changed the way a RegionGraph is streamed to an std::ostream.
* Improved factorgraph.h/cpp:
- Deprecated the iterator interface:
o FactorGraph::iterator typedef
o FactorGraph::const_iterator typedef
o FactorGraph::begin() members
o FactorGraph::end() members
- Deprecated FactorGraph::factor(size_t) which offered write access to a factor
because using this functionality in the descendant RegionGraph is dangerous,
as the outer regions are not automatically recomputed.
* Improved bipgraph.h/cpp:
- Added operator<<( std::ostream&, const BipartiteGraph& )
21 files changed: