Emergent properties of multi-agent dynamics on networks and spaces