Calculates perceptual nearness using maximal clique enumeration