diff --git a/packages/CLPBN/clpbn/bp/FactorGraph.h b/packages/CLPBN/clpbn/bp/FactorGraph.h index f4b8932b6..a8e4880dc 100644 --- a/packages/CLPBN/clpbn/bp/FactorGraph.h +++ b/packages/CLPBN/clpbn/bp/FactorGraph.h @@ -15,8 +15,9 @@ class FacNode; class VarNode : public Var { public: - VarNode (VarId varId, unsigned nrStates) - : Var (varId, nrStates) { } + VarNode (VarId varId, unsigned nrStates, + int evidence = Constants::NO_EVIDENCE) + : Var (varId, nrStates, evidence) { } VarNode (const Var* v) : Var (v) { }