I was wondering if you could help me prove the following.
$G$ is a tree $\iff$ deleting any edge will disconnect it.
And a similar one:
$G$ is a tree $\iff$ adding any edge will create a cycle.
I know we should use the fact that if $G$ is a tree, then $G-v$ is also a tree for $v$ such that $deg(v)=1$.
I also know that any tree has at least two vertices whose degree is 1.
Could you help me with this?
Thank you.
Here’s one approach. First prove that a graph with no cycle either has no edges or has a vertex of degree $1$. Thus, a non-trivial tree has a vertex of degree $1$, i.e., a leaf. Use this observation to prove by induction that a graph with $n$ vertices is a tree iff it has exactly $n-1$ edges and is connected. Then observe that adding an edge to a tree cannot disconnect it, so it must create a cycle (since the resulting graph has too many edges to be a tree). Similarly, removing an edge cannot create a cycle, so it must destroy ‘tree-ness’ by disconnecting the graph.