How many connected components does this graph have?
The maximally connected subgraphs of an undirected graph are called connected components.
Vertices 0, 1, 2, 3, and 4 form one connnected component