This is a  MATLAB implementation of 'Dominant Sets and Pairwise Clustering', by Massimiliano     Pavan and Marcello Pelillo, PAMI 2007.