Connect only nearest, with curves or smooth curves?

how do I connect near points with smooth curves?
and how to get it correct without the extra lines?
and can it switch direction, like diagonal?




connect.gh (11.0 KB)
Connect.3dm (230.6 KB)