outputs all possible graph traversals