The link between brain activity and social networks