solves a tsp problem and shows the solution graphically