small improvement in HorusYap
This commit is contained in:
parent
51eef45b2d
commit
85db763d9c
@ -189,13 +189,12 @@ runGroundSolver (void)
|
|||||||
taskList = YAP_TailOfTerm (taskList);
|
taskList = YAP_TailOfTerm (taskList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FactorGraph* mfg = fg;
|
||||||
|
if (fg->bayesianFactors()) {
|
||||||
std::set<VarId> vids;
|
std::set<VarId> vids;
|
||||||
for (size_t i = 0; i < tasks.size(); i++) {
|
for (size_t i = 0; i < tasks.size(); i++) {
|
||||||
Util::addToSet (vids, tasks[i]);
|
Util::addToSet (vids, tasks[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
FactorGraph* mfg = fg;
|
|
||||||
if (fg->bayesianFactors()) {
|
|
||||||
mfg = BayesBall::getMinimalFactorGraph (
|
mfg = BayesBall::getMinimalFactorGraph (
|
||||||
*fg, VarIds (vids.begin(), vids.end()));
|
*fg, VarIds (vids.begin(), vids.end()));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user