I'm trying to traverse through an MST. I want to be able to start and finish from one vertex and visit every vertex (TSP). I don't care about efficiency, I just want to be able to visit every vertex in the MST and come back to the source vertex. Any suggestions? I've tried implementing the MST with
ArrayList<ArrayList<Vertex>> mst = new ArrayList<ArrayList<Vertex>>();
but I don't know how to start doing the DFS.