|
|
@ -333,7 +333,7 @@ function recalculateWaypoints(waypoints) {
|
|
|
|
const salesmanPath = bfTravellingSalesman(graph);
|
|
|
|
const salesmanPath = bfTravellingSalesman(graph);
|
|
|
|
let indexes = [];
|
|
|
|
let indexes = [];
|
|
|
|
for (var ind in salesmanPath) {
|
|
|
|
for (var ind in salesmanPath) {
|
|
|
|
indexes.push(salesmanPath[ind].value);
|
|
|
|
indexes.push(waypoints[salesmanPath[ind].value].id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
showTravelPoints(indexes);
|
|
|
|
showTravelPoints(indexes);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|