Labels vs. Pairwise Constraints: A Unified View of Label Propagation and Constrained Spectral Clustering