Graph traversal algorithm utilizing stack for node exploration
Explain code with DocComment! Try out your own code!