TheAlgorithms / PHP

All Algorithms implemented in PHP
MIT License
2.15k stars 468 forks source link

Add non recursive DFS algorithm #94

Closed andremralves closed 2 years ago

andremralves commented 2 years ago

Add a non recursive DFS function that returns the visited vertices.