DSAverse
Graph Algorithms
Loading Graph Algorithms...
BFS Traversal
visited: 0 / 7Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Graph Algorithms
Loading Graph Algorithms...
BFS Traversal
visited: 0 / 7Watch the graph split into its connected components — run BFS from each unvisited node, and colour every group of mutually reachable nodes.
O(V + E)O(V)Question 1 of 3
What is a connected component in an undirected graph?