function PlotPath(connection,citydata, path);

ncities = length(citydata);
for i = 1:(ncities-1)
   set(connection(i),'XData',[citydata(path(i),1) citydata(path(i+1),1)]);
   set(connection(i),'YData',[citydata(path(i),2) citydata(path(i+1),2)]);
end
set(connection(ncities),'XData',[citydata(path(ncities),1) citydata(path(1),1)]);
set(connection(ncities),'YData',[citydata(path(ncities),2) citydata(path(1),2)]);


drawnow;