Let V={v1,v2,…,vn} be the set of vertices and E is the set of edges of the graph G.
First let's prove that degv1+⋯+degvn=2∣E∣ by induction on ∣E∣.
If ∣E∣=0, then the graph contains no edges, degvi=0 for all i=1,2,…,n, and the equality holds. Now assume that the equality is proved for all graphs with ∣E∣<m and consider any graph G with ∣E∣=m. Assume that for some i,j the edge vivj∈E and let G′ be the graph that remains after deleting the edge vivj from G. By the induction hypothesis,
degG′v1+⋯+degG′vn=2∣E′∣=2∣E∣−2
By the construction, for all k=i,j we have degG′vk=degGvk, degG′vi=degGvi−1 and degG′vj=degGvj−1. Hence,
degG′v1+⋯+degG′vn=degGv1+⋯+degGvn−2=2∣E∣−2
Therefore, degv1+⋯+degvn=2∣E∣, as required, and the equality is proved for all finite graphs.
Denote by ri 1, if degvi is odd, or 0, if else. Then ri=degvi−2[degvi/2], and the number of odd degree vertices is equal to
r1+⋯+rn=i=1∑n(degvi−2[degvi/2])=2∣E∣−2i=1∑n[degvi/2]
Therefore, it is even.
Comments