I have solved TSP problem, now I have two output files.
File1. contains (x,y) value of all cities.
I have plotted this points using the following code:
d = read.table('city_data.txt', sep=" ", col.names=c("cityX", "cityY"));
plot(d$cityX,d$cityY);
File2: contains connected nodes n sequence, suppose 25->22->4->21...........
in file city_data.txt row1 represents x,y value of node 1, row2 represents vale of node.....
how i can draw lines between 25->22->4->21...............