Consider the city Cmax with the maximal population M (breaking ties arbitrarily). Then M is the average of the populations of the neighboring cities, say p1,p2,…,pn, meaning that
np1+p2+⋯+pn=M
But p1,p2,…,pn≤M, and hence p1+p2+⋯+pn≤nM. So this can only occur if p1=p2=⋯=pn=M. Hence all neighbors of Cmax have population M.
Proceeding in the same fashion, we find that all neighbors of neighbors of Cmax also must have population M, and so on. Because the network of cities is connected, this implies that all cities must have population M.