Depth-first search
Jump to navigation
Jump to search
Definition
Pseudocode
---
DFS(G)
1 for each vertex u ∈ V[G]
2 do color[u] ← WHITE
3
4
5
6
---
1 for each vertex u ∈ V[G]
2 do color[u] ← WHITE
3
4
5
6