adding graph traversal