Why does a connected undirected graph with n vertices need at least n-1 edges?
To ensure that any two vertices are reachable from each other, the graph must have at least n-1 edges. This minimum is achieved when the graph forms a tree-like structure, such as a star graph, where edges connect vertices without forming cycles.
Conditions
- G is an undirected graph.
- G has n vertices.
- G is a connected graph.
Reasoning, step by step
- Consider a graph with n vertices.
- To connect all vertices without redundancy, add edges one by one to link isolated vertices or components.
- The minimum number of edges required to link n vertices into a single connected component is n-1.
- Verify with a star graph example: 5 vertices require 4 edges to remain connected.
Example
The presenter draws a star-shaped graph with 5 vertices (A, B, C, D, E) where the central vertex C connects to the other four. This uses exactly 4 edges (n-1) to make the entire graph connected.
Common misconceptions
- Mistaking 'connected' for 'every pair of vertices must be directly adjacent', which would require edges (a complete graph).
- Assuming that fewer than n-1 edges can still form a connected graph, which would leave at least one vertex isolated.
Watch the explanation
4:00 – 4:12Watch this moment ↗
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.