added dfs traversal from set of vertices