Marked the backwards compatibility edge interface of BipartiteGraph as obsolete
authorJoris Mooij <joris.mooij@tuebingen.mpg.de>
Fri, 31 Jul 2009 14:22:12 +0000 (16:22 +0200)
committerJoris Mooij <joris.mooij@tuebingen.mpg.de>
Fri, 31 Jul 2009 14:22:12 +0000 (16:22 +0200)
include/dai/bipgraph.h
src/cbp.cpp

index b9c8f58..2a9d59e 100644 (file)
@@ -360,6 +360,7 @@ class BipartiteGraph {
         /// @name Backwards compatibility layer (to be removed soon)
         //@{
         void indexEdges() {
+            std::cerr << "Warning: this BipartiteGraph edge interface is obsolete!" << std::endl;
             _edges.clear();
             _vv2e.clear();
             size_t i=0;
index aab36e6..3e0e2ba 100644 (file)
@@ -43,8 +43,6 @@ const char *CBP::Name = "CBP";
 
 
 void CBP::construct() {
-    indexEdges();
-
     _beliefsV.clear(); _beliefsV.reserve(nrVars());
     for( size_t i = 0; i < nrVars(); i++ )
         _beliefsV.push_back( Factor(var(i)).normalized() );