Agent-based model investigating how social interactions can result in self-organized behavioral specialization and social network structure.