depth_first_traversal

Implemented depth_first_traversal() and added relevant unit tests (including cyclic and acyclic examples).