I want to draw an undirected connected graph with $9$ nodes, having the degrees:
$$2, 2, 2, 2, 2, 1, 1, 1, 1$$
I know that this graph will have $7$ edges, but how? I am trying each time, I am stopping after node $7$ and if I draw $8$ it is having degree $2$ instead of $1$. Please help.
Suppose such a graph G exists. Then G can not contain a cycle. For, then all the vertices must be of degree 2 or there must be a vertex of degree at least 3 as G is connected. Thus, we are looking for a connected acyclic graph, that is a tree, with 9 vertices and 7 edges. But every tree with 9 vertices must have exactly 8 edges. So such a graph G doesn't exist!
Also, it is worth to remember that a tree is minimally connected. So, to make an $n$ vertex connected graph we need at least $n-1$ edges.