polygon_medial_axis() returns half edge graph

medial axis data structure builder adapted from voronoi diagram
builder - further processes graph to determine which edges are
inside the polygon, and changes next/prev edge links to trace
medial axis paths rather than Voronoi cell boundaries