Depth-first search: Difference between revisions
Jump to navigation
Jump to search
Line 13: | Line 13: | ||
5<br/> | 5<br/> | ||
6<br/> | 6<br/> | ||
Revision as of 16:46, 14 August 2014
Definition
Pseudocode
DFS(G)
- for each vertex u ∈ V [G]
- do color[u] ← WHITE
- do color[u] ← WHITE
- for each vertex u ∈ V [G]
3
4
5
6