Let's say I give you the following array of points:
(1,1) (1,3), (2,2), (4,1), (4,3)
My (terrible) mspaint drawing of the shape that would be created by these looks like this:
How, given an arbitrary set of coordinates, can I define the edges which constitute a shape with no overlapping edges?