The structure of social interaction