[Math] Prove by induction that every graph with n vertices and at least n edges has a cycle

discrete mathematicsgraph theory

Prove by induction that every graph with $n$ vertices and at least n
edges has a cycle. Use induction by $n$ and the fact that a graph in
which every vertex has a degree $\ge 2$ has a cycle.

I'm thinking about removing vertices of degree 1 from the graph (so that I'm removing exactly one vertex and one edge) until I'm left with a graph in which every vertex has a degree at least 2, but I'm not sure how I should incorporate induction in this reasoning.

Best Answer

Take two vertices that are connected by one edge. Call them $(u,v)$ and the edge $e$. Collapse the vertices into one vertex. You obtain a graph $G'$ on one less vertex and one less edge. Apply the induction hypothesis, and convince yourself that if you have a cycle in $G'$ then the uncollapsed version must also have a cycle.