trying graph traversal