public static void doubleWalk(int current, boolean[] visited, UndirectedGraph ug, ArrayList<Integer> doublePath){
		if(visited[current]){ return; }
		doublePath.add(current);
		visited[current]=true;
		for(int i=0;i<ug.dist[current].length;i++){
			int to=ug.dist[current][i];
			if(!visited[to]){
				doubleWalk(to,visited, ug, doublePath);//add going down
				doublePath.add(current);//add going up
			}
		}
	}