Maybe someone had already this issue.
I have a bunch of lines. If needed I can also make a graph where nodes are end points of lines.
What would be an approach to sort them in such a way to create closed cells?
I tried to search for graph methods to find simplest cycles such as topological sort, Tarjan, Johnson algoritms.
But I think they would not work in such cases.
@PeterFotiadis I saw you once on the old thread you did something similar an example how to solve this issue?