What is the number of vertices in an undirected connected graph with 39 edges, 7 vertices of degree 2, 2 vertices of degree 5 and remaining of degree 6?

What is the number of vertices in an undirected connected graph with 39 edges, 7 vertices of degree 2, 2 vertices of degree 5 and remaining of degree 6? Correct Answer 18

We know that, sum of degree of all the vertices = 2 * number of edges 2*7 + 5*2 + 6*x = 39*2 x=9 Number of vertices = 7 + 2 + 9 = 18.

Related Questions

Consider the undirected graph below: Using Prim's algorithm to construct a minimum spanning tree starting with node a, which one of the following sequences of edges represents a possible order in which the edges would be added to construct the minimum spanning tree?