I have a vector of lines, in which some of them are isolated from the rest of the lines, but I need that every line is connected to at least another one, so as to obtain a unique connected path.
This is a part of the network, where there are isolated (black) lines:
I would like to know if there is a tool that could connect automatically those lines in order to obtain a unique path (for example, as I shown with the evident handmade red lines)