It plots the two-dimensional cities of a TSP and a tour among them
for visualization purposes. No aesthetically appealing effort
has been invested in this function.
See Also
build_tour_nn nearest neighbor heuristic with a single
starting point, build_tour_nn_best repeats the previous
algorithm with all possible starting points,
compute_distance_matrix computes the distance matrix of a
set of two-dimensional points.
set.seed(1)
n <- 25
z <- cbind(runif(n,min=1,max=10),runif(n,min=1,max=10))
d <- compute_distance_matrix(z)
b <- build_tour_nn_best(d, n)
plot_tour(z,b)