diff --git a/src/algorithm.cpp b/src/algorithm.cpp index f40977f..39cd76d 100644 --- a/src/algorithm.cpp +++ b/src/algorithm.cpp @@ -64,6 +64,7 @@ void PrintSolution(std::vector solution) { cost += j.weight; } } + lastVertex = i; } std::cout << std::endl; std::cout << "Cost: " << cost << std::endl;