Unifying traversers API

Multiple visits of nodes in BFS and DFS are no longer possible.