public void AddConstraint(IConstraint <T> constraint) { Constraints.Add(constraint); foreach (Variable <T> variable in constraint.GetVariables()) { if (variable != this) { DependentVariables.Add(variable); } } }