Repository works great with basic polygons, but when vertices reach large numbers it takes forever to build the graph. Using convex hull approach will reduce the number of vertices dramatically and improve the performance. In some of my tests, performance improved by 5000%.