“When conflict breaks out in social groups, individuals make strategic decisions about how to behave based on their understanding of alliances and feuds in the group.”
Source: How computation can predict group conflict: Fighting among captive pigtailed macaques provides clues