Multiagent task allocation in social networks