Data Structures and Algorithms ยท Graphs

Graph traversal (BFS and DFS)

Visiting every reachable vertex, either level by level (BFS) or by diving deep first (DFS).

Also known as: breadth-first search, depth-first search, connected components.

Start a lesson on Graph traversal (BFS and DFS)

Learn first

Leads to

Related topics