Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In an undirected graph, the degree d(u) of a vertex u is the number of neighbors

ID: 440210 • Letter: I

Question

In an undirected graph, the degree d(u) of a vertex u is the number of neighbors u has. or equivalently, the number of edges incident upon it. In a directed graph, we distinguish between the in-degree din(u), which is the number of edges into u, and the out-degree dout(u), the number of edges leaving u. Show that in an undirected graaph, d(u) = 2|E|. Use part (a) to show that in an undirected graph, there must be an even number of vertices whose degree is odd. Does a similar statement hold for the number of vertices with odd in-degree in a directed graph?

Explanation / Answer

Part (a) For a vertex u, d(u) is the number of edges incident upon it. So sum of d(u) over V is the count of all edges incident on all the vertices. As an edge has exactly two vertices, all edges are counted exactly twice. So we have sum of d(u) over V = 2|E|. Part(b) Proof by contradiction. Suppose that there are an odd number of vertices with an odd degree. Then the sum of all degrees is odd. Yet, we proved in (a) that the sum of all degrees is even (as 2|E| must be an even number). This contradicts our assumption. So there must be an even number of vertices with an odd degree. Part (c) Proof by counterexample. This statement does not hold in a directed graph when considering indegrees. For example, in the 2 vertex simple graph (A ! B), we have din(A) = 0 and din(B) = 1. So, we have only 1 (odd) vertex with an odd degree. Cheers! Please rate :) :)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote