// // Given a path, reverse all edges in the PathGraph // private void reverseShortestPathEdges(List <int> path) { // For all vertices in the path for (int i = 1; i < path.Count - 2; i++) { // Reverse the edge; DO NOT reverse the first or last arc graph.ReverseEdge(path.ElementAt(i), path.ElementAt(i + 1)); } }