fix a bug in exporting to uai format

This commit is contained in:
Tiago Gomes
2012-05-28 17:00:46 +01:00
parent 3ee176c65b
commit 149f3dab26
2 changed files with 24 additions and 32 deletions

View File

@@ -32,6 +32,7 @@ class VarNode : public Var
};
class FacNode
{
public:
@@ -60,14 +61,6 @@ class FacNode
};
struct CompVarId
{
bool operator() (const Var* v1, const Var* v2) const
{
return v1->varId() < v2->varId();
}
};
class FactorGraph
{
@@ -141,5 +134,15 @@ class FactorGraph
VarMap varMap_;
};
struct sortByVarId
{
bool operator()(VarNode* vn1, VarNode* vn2) {
return vn1->varId() < vn2->varId();
}
};
#endif // HORUS_FACTORGRAPH_H