Closest points with same distance issue

Hi all,

i tried to get the closest points and all of them have the same distance but different locations.
Unfortunatly the result with closest points give sometimes the same point two times or one three times and take the other not into account.

some help would be great.

Maybe find points by distance.

Upload a specific example, may there‘s another solution.

Ah sorry, thats true so here is the file and the description.

in the file is a hexagrid with shorted lines between the center points.

end and startpoint on each line is needed to create a circle throught these points

the goal should look like this

file
hexagrid.gh (9.3 KB)
hexagrid.3dm (66.5 KB)

hexagrid_r.gh (11.8 KB)

big thanks Regee