sweep line / largest polygon

Hi, I have a set of segments and I have to calculate the area of the largest polygon which can be build using this segments (the polygon must be enclosed)… sounds like a sweep-line problem but I have no idea how to handle the sweep… any ideas?

I think this can help you .