A Lagrangian-based score for assessing the quality of pairwise constraints in SSC