Two cycle graphs $C_{n}$ and $C_{m}$ are joined together:
- with a vertex,
- with an edge.
What is the number of spanning trees in the new graph?
I think I've worked out the answer to question 1, as there are $n$ possible edges to be removed from $C_{n}$, $m$ to be removed form $C_{m}$ and the rest form a unique spanning tree, so the answer is $n \cdot m$. But I'd appreciate any help with question 2.
HINT: You’re right about the first problem. For the second you have to consider two possibilities:
Count the spanning trees in each case and add the results to get the final answer.