• edited by
28,457 views
1 1 vote

A simple non directed graph contains $21$ edges, $3$ vertices of degree $4$ and the other vertices are of degree $2$.Then the number of vertices in the graph is?

  1. $8$
  2. $13$
  3. $18$
  4. $21$

3 Answers

Best answer
3 3 votes
The Handshaking theorem states that,

$\displaystyle{\sum_{v \in V}{deg (v_i)} = 2 \times \mid E\mid}$

Which means, $\text{Each edge contributes twice to the sum of the degrees of all vertices.}$

$\text{Sum of degree of vertices = 2 } \times Edges$

Now, the graph has $21$ Edges.

∴ $2 \times Edges = 2 \times 21 = 42$

We don't know the number of vertices.

So, we assumed the total number of vertices will be $n$

∴ Sum of the degree of vertices = $3 \times 4 + (n-3) \times 2$ $\qquad \left[ \text{3 vertices have degree 4 & other vertices that means (n-3)vertices have degree n} \right ]$

∴ $3\times(4) + (n – 3 ) \times 2 = 2\times(21)$

   Or, $n  = 18$.

∴ $\color{Green}{\text{Number of vertices in the graph is }} \color{Blue}{ 18}$.
• edited by
6 6 votes
In any Simple Undirected Graph, We have degree sum formula that :

$\sum_{v \in V} deg(v) = 2\left | E \right |$

Where $\left | E \right |$ is the number of edges.

(We can prove this formula by the fact that every edge in any undirected graph contributes the sum of $2$ in the degree sum formula)

Hence, Just apply this formula :

Let $n$ be the number of Total vertices then we have

$3 \times 4 + (n-3) \times 2 = 2 \times 21$

 $n = 18 $
3 3 votes
Note that the sum of the degrees of vertices is equal to twice the number of edges.

So,here the sum of the degrees =21*2 = 42

Now,assume there are k vertices of degree 2 and we have 3 vertices of degree 4

So, the sum of the degrees of the vertices are (3*4) + 2k

Hence, (3*4) + (2*k) = 42

=> k = 15

So,the total number of vertices is 15 + 3 = 18.

Hence,Option C is the correct answer.
Position:
Show:

Related questions

3 3 votes
0 0 answers
601
601 views
Parshu gate asked Sep 22, 2017
601 views
Hello Sir, I have gone through the previous year questions and also gave some tests till now. From this experience I have realized that in GRAPH THEORY - ...
0 0 votes
1 1 answer
684
684 views
mb14 asked May 28, 2018
684 views
In this graph it is said that $a,e,b,c,b$ is a path. But according to definition- in a path vertices and edges can't repeat so why this is a path. confused please clarify...
0 0 votes
0 0 answers
958
958 views
Sourajit25 asked Dec 25, 2017
958 views
Let G be a planar graph with 7 vertices, 10 edges and 3 components then the number of regions are :a)24b)37c)7d)10Answer given : 7How to solve this ? Is there any formula...
0 0 votes
0 0 answers
688
688 views
Pavan Kumar Munnam asked May 12, 2017
688 views
algorithm to find more than one path between any two vertices of a graph G=(V,E) , with a complexity of O(VE) ?