I would like to convert a set of lines linked at various nodes to a 2D 'face' shape. This is most easily demonstrated with a diagram:
I want to go from the lines on the left to the shape on the right. My question is, is there an existing algorithm to do this? Ideally one implemented in python, but other options would be welcome.