結果 : graph traversal method in data structure