Learning a social structure.