Maths WorkshopMaths problems with full solutions
Exercise 470Combinatorics › Graph theoryHigh schoolAdded 3 Nov 2026

Connected components

#connectivity#connected components

Statement

Determine the number of connected components of the graph with vertices {1,…,7}\{1,\ldots,7\} and edges {1,2},{2,3},{4,5},{6,7},{5,6}\{1,2\},\{2,3\},\{4,5\},\{6,7\},\{5,6\}.

Hint

Find maximal connected subgraphs.

Show solutionHide solution

Solution

Component 1. {1,2,3}\{1,2,3\}: path 11-22-33.

Component 2. {4,5,6,7}\{4,5,6,7\}: path 44-55-66-77.

Count. 22 components.

Conclusion. The graph has 22 connected components.