fixed issue #1025: Traversal not as expected in undirected graph