Connected Graphs: Explained with Examples, Notes and FAQs
A graph is connected if you can travel from every vertex to every other vertex along edges — if there is a path between each pair of vertices. A single isolated vertex sitting alone, or a cluster of vertices with no edges reaching the rest, breaks connectedness. If a graph is not connected, it falls apart into pieces called components.
Connectedness matters because it is the difference between a working system and a broken one. A connected road network lets you drive anywhere; a disconnected one has regions cut off from each other.
Key Concepts
- Connected graph: for every pair of vertices u and v, there is at least one u–v path.
- Disconnected graph: at least one pair of vertices has no path between them.
- Component: a maximal connected piece of a graph. Every graph is the disjoint union of its components.
- Cut vertex: a vertex whose removal increases the number of components.
- Bridge: an edge whose removal increases the number of components.
- Isolated vertex: a vertex of degree 0, a component all by itself.
How It Works
To test connectedness, start at any vertex and mark every vertex you can reach by walking along edges — a traversal. If you mark every vertex, the graph is connected. If some remain unmarked, each new group you explore is a separate component. Bridges and cut vertices are the single points of failure: removing one increases the component count.
Worked Example
Build a graph with vertices A, B, C, D, E, F and edges: A–B, B–C, A–C, D–E, with F alone. Start at A: reachable vertices are A, B, C. Start fresh at D: reachable are D and E. Vertex F is reachable from nothing but itself. So this graph has 3 components: {A, B, C}, {D, E} and {F} — it is disconnected. Add the edge C–D: the first two components merge, leaving 2 components. Add E–F and all six vertices connect into one component — the graph is now connected. The edge C–D was a bridge in the 2-component stage: removing it would split the graph again.
Common Misconceptions
- "Almost connected" is still disconnected. If even one pair of vertices has no path between them, the whole graph is disconnected. Connectedness is all-or-nothing.
- A connected graph can still have weak spots. A graph with a bridge is connected, but removing that one edge disconnects it. Connected does not mean robust.
- Every component is itself connected. Components are defined as maximal connected subgraphs, so each one is connected by construction — and no edge joins two different components, otherwise they would be one component.
Real-World Applications
- Internet and phone networks: engineers check that the network graph stays connected and hunt for bridges whose failure would split it.
- Power grids: a blackout spreads through connected lines; cut vertices in the grid are the substations that must never fail.
- Social networks: friend groups form components; researchers ask whether the whole user graph is one giant component.
- Epidemiology: a disease can only spread within the connected component of the contact graph containing the first case.
A connected graph lets you reach everything from everywhere; a disconnected one splits into components, with bridges and cut vertices as its fragile points. Testing connectedness by a simple traversal is one of the most practical tools in graph theory.
Related blogs
- Graphs Vertices and Edges: Explained with Examples
- Types of Graphs in Math: Bar, Line, Pie & More Explained
- Degree of a Vertex and Handshaking Lemma: Notes and FAQs
- Walks, Paths and Circuits in Graph Theory Explained
- Eulerian Trails and Circuits: Explained with Examples
- Hamiltonian Paths and Cycles in Graph Theory Explained