sort the colors in the signature receveied from a factor

This commit is contained in:
Tiago Gomes 2012-04-18 19:29:11 +01:00
parent 862e90a36b
commit 7c100c96bc

View File

@ -237,6 +237,7 @@ CFactorGraph::getSignature (const FacNode* facNode)
*it = getColor (neighs[i]); *it = getColor (neighs[i]);
it ++; it ++;
} }
sort (sign.colors.begin(), -- sign.colors.end());
*it = getColor (facNode); *it = getColor (facNode);
return sign; return sign;
} }