Added graph traversal algorithms.