The coevolutionary ultimatum game on different network topologies