Remove self intersections, t-junctions and duplicate edges/vertices from a planar straight line graph