A spectral algorithm for computing social balance
Attitudes and cognitive organization.