Course contentsShow
Computer Science
Lesson 732 of 2,87217. Graph Traversal AlgorithmsPro lesson

Counting Connected Components

Iterate through all vertices, running DFS or BFS on unvisited vertices to count total number of components.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.