If a graph G(V,E) is connected the number of edges is at least the number of Vertices-1. It is pretty evident if you think about it but how do i prove it formally?
Asked
Active
Viewed 279 times
1 Answers
4
Imagine a process in which you start with the empty graph, and add the edges one by one. Keep track of the number of connected components. In the beginning, there are $|V|$ connected components. Each edge you add either belongs inside a connected component, or merges two connected components, and in any case, the number of connected components decreases by at most 1. Hence after adding $|E|$ edges, the number of connected components is at least $|V| - |E|$. If the graph is connected, $|V| - |E| \leq 1$, and so $|E| \geq |V| - 1$.
Yuval Filmus
- 280,205
- 27
- 317
- 514