[G5] Connected graphs with n-1 edges must be acyclic (2 pts) [00M4]

Prove that for all n \geq 1, if G is a simple connected graph with n vertices and n-1 edges, then G has no cycles. (This is the third part of the proof from class, characterizing trees as having any two out of three properties.)

You may freely assume Connected, acyclic graphs have n-1 edges and Acyclic graphs with n-1 edges are connected if they are helpful; I also recommend studying their proofs as examples.

Context

Some proofs about trees [00M0]

Graph problems [00LW]

Related

[G4] Handshake lemma (1 pt) [00M5]

Acyclic graphs with n-1 edges are connected [00M3]

Connected, acyclic graphs have n-1 edges [00M2]

Theorem. Trees [00M1]

Definition. Cycle [00LU]

Definition. Connected [00LT]