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