I have a two-dimensional mesh that I am visualizing in Mathematica, with ListPlot[]. The mesh looks like this:

Any ideas for how to connect all the nearest neighboring points with lines?
Thanks, ahead of time.
I have a two-dimensional mesh that I am visualizing in Mathematica, with ListPlot[]. The mesh looks like this:

Any ideas for how to connect all the nearest neighboring points with lines?
Thanks, ahead of time.
ListPlot[] isn't the "right" tool. It can be done with Epilog ->, but it's more natural to use Graphics[] and Nearest[]:
(* Generate a distribution similar to your example *)
n = 1000;
rs = RandomVariate[TransformedDistribution[Sqrt@x,x\[Distributed] UniformDistribution[{.1, 1}]], n];
phis = RandomReal[{0, 2 Pi}, n];
pts = #1 {Cos@#2, Sin@#2} & @@@ Transpose[{rs, phis}];
(* Find the lines and plot them*)
p = Nearest[pts];
pts1 = p[#, 2][[2]] & /@ pts;
Graphics[{Point@pts, Line[{##}] & @@@ Transpose[{pts, pts1}]}, Axes -> True]

The standard doc for Nearest[] is not complete. This one is much better.
If you want something like "percolation style" neighbors (almost, but not exactly), you can do:
k = {};
AppendTo[k, {#, (h = p[#, 100])[[2 +
Sum[Boole@MemberQ[k, {h[[i]], #}], {i, 2, 100}]]]}] & /@ pts;
