Fixed cost
This commit is contained in:
parent
7c73089916
commit
47479936e0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user