Talk:Artificial Intelligence/Search/Heuristic search/Depth-first search

In the text you say "[the color of] each node being explored [is set to] grey".

However, the code looks like this:

It seems to me that the color should be set to grey before you call visit. So I would suggest to change the algorithm to this:

--Alexis Wilke (discuss • contribs) 22:36, 25 August 2018 (UTC)