add nrVarNodes and nrFacNodes
This commit is contained in:
parent
6f7d2af718
commit
b27500e93f
@ -83,6 +83,10 @@ class FactorGraph
|
|||||||
|
|
||||||
bool isFromBayesNetwork (void) const { return fromBayesNet_ ; }
|
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
|
VarNode* getVarNode (VarId vid) const
|
||||||
{
|
{
|
||||||
VarMap::const_iterator it = varMap_.find (vid);
|
VarMap::const_iterator it = varMap_.find (vid);
|
||||||
|
Reference in New Issue
Block a user