Your question is unclear.
The question is so vague that I see 2 completely different things that fit the provlem:
- You have a set of points and you want to draw the smallest circle that surround those points.
Smallest-circle problem - Wikipedia[
^]
- You have a set of points and you want to draw a convex hull.
Convex hull - Wikipedia[
^]
For better answers: clarify your question, give example of input and result you looking for.
[Update]
Quote:
The output of this example should be AB,BC,CX,XY,YZ,ZA
A direct link to AC and removing B would be closer to a circle. Is it what you want ?