My problem is rather that the edges of the current layer are really close to each other sometimes and therefore when i am thresholding (currently only binary) and skeletonize they connect even though that is not wanted (red square) . And at other places the actual edge is not fully connecting (green square)
I think one can propably use the fact that usually the lines that are not supposed to be connected are parallel to each other.