The Analysis of Patterns of Social Interaction