Fixed cost

This commit is contained in:
TriantaTV 2023-09-10 22:11:18 -05:00
parent 7c73089916
commit 47479936e0

View File

@ -64,6 +64,7 @@ void PrintSolution(std::vector<Vertex*> solution) {
cost += j.weight;
}
}
lastVertex = i;
}
std::cout << std::endl;
std::cout << "Cost: " << cost << std::endl;