Integrating individual psychology and social networks