minor improvement
This commit is contained in:
parent
651051484b
commit
ac38e9e6a6
@ -150,9 +150,7 @@ ElimGraph::getEliminationOrder (
|
|||||||
Util::addToVector (allVids, (*first)->arguments());
|
Util::addToVector (allVids, (*first)->arguments());
|
||||||
}
|
}
|
||||||
TinySet<VarId> elimOrder (allVids);
|
TinySet<VarId> elimOrder (allVids);
|
||||||
for (size_t i = 0; i < excludedVids.size(); i++) {
|
elimOrder -= TinySet<VarId> (excludedVids);
|
||||||
elimOrder.remove (excludedVids[i]);
|
|
||||||
}
|
|
||||||
return elimOrder.elements();
|
return elimOrder.elements();
|
||||||
}
|
}
|
||||||
ElimGraph graph (factors);
|
ElimGraph graph (factors);
|
||||||
|
Reference in New Issue
Block a user