add nrVarNodes and nrFacNodes

This commit is contained in:
Tiago Gomes 2012-04-16 19:29:55 +01:00
parent 6f7d2af718
commit b27500e93f

View File

@ -83,6 +83,10 @@ class FactorGraph
bool isFromBayesNetwork (void) const { return fromBayesNet_ ; }
unsigned nrVarNodes (void) const { return varNodes_.size(); }
unsigned nrFacNodes (void) const { return facNodes_.size(); }
VarNode* getVarNode (VarId vid) const
{
VarMap::const_iterator it = varMap_.find (vid);