graph traversal algorithm in data structure