2 problems in this category
Count connected components using DFS traversal.
O(V + E)
O(V)
Find shortest distances from starting node using BFS.