I have a vector generated from bitmap map trace where I segmented topological contours. These contours have gaps that were caused by various labellings, graticules and other line objects overlaid on top of contours in source bitmap.
I've read couple of papers about this problem, and am aware of some curve reconstruction algorithms that authors reported to be successful in automating this process. Thinking about it, as a challenge that it represents to me as I'd have to do this through programming, while I'm not confident that I'll be able to see the final result, I thought that maybe Inkscape as a vector application has some instrument that can be used for this task.
To explain through pictures... I have this kind of bitmap:

which I trace to this vector:

and I aim toward vector with reconstructed contours, where gaps should be corrected automatically:

and by automatically I mean on all selected lines, so that I won't have to select each group of contour line separately and do join lines, as that is too much time consuming process.
Thanks