CSPs are factor graphs where each factor are
constraints. That is, our factor returns 0 if the constraint is not satisfied, or 1 if it is.
- Thus, if all constraints are satisfied, then the weight of that assignment is 1 (that assignment is consistent). Else, if even a single constraint is not satisfied, weight = 0 (that assignment is inconsistent).