I was given the following question on an assignment and had no idea how to solve it(without laplacian matrices), so naturally, I got it wrong. The answer is supposed to be found using combinatorics. The question is below.
Given a complete graph that is provided below, find the number of spanning trees in the graph if vertex 10 were to have a degree of 1 or if vertex 10 had a degree of 4.
https://i.stack.imgur.com/2xveL.png
So, is there a formula to deal with a question like this(using combinatorics)? The question also stated that I should know that the number of spanning trees in a complete graph is: $$n^{n-2}$$
I found that the answer for degree 1 is: $$9^{9-2}=9^7=4782969$$ For degree 4 I have no idea.
The pictured graph is $K_{10}$ Consider the case where vertex $10$ is of degree $1$. There is one edge $e$ incident on vertex $10$ and it must be in the spanning tree. If we delete $e$ from the graph, the graph that remains is a $K_9$ and has $9^7$ spanning trees. Each of these spanning trees, together with edge $e$, gives a spanning tree of the whole graph. So the answer is $9^7$.
The question is harder when the degree is $4$ because, while you must have at least one of the edges incident on vertex $10$, you can have $2,3,\text{ or }4$ of them. Also, when you delete those edges, you don't necessarily have a spanning tree of the remaining graph.
Good luck.