Suppose I have the following example data,
data = Table[{Cos[theta], Sin[theta]}, {theta, 0, 2 Pi, Pi/8}];
which, when plotted, looks like this,
ListLinePlot[data, PlotMarkers -> {Automatic, 10}]
Instead, imagine rather than being in order, the data order is scrambled,
data = RandomSample[data, Length@data];
Now, the plot looks not too pretty,
ListLinePlot[data, PlotMarkers -> {Automatic, 10}]
Is there a simple way to draw straight lines (not curves) connecting the points as in the top graph, using the scrambled data (when we do not know the true order)?





FindShortestTour? – NonDairyNeutrino Nov 26 '18 at 21:53