I am relatively new to Houdini, and am trying the connect points to their nearest y neighbour vertically. The points aren't perfectly aligned. I have attached a quick sketch (with red markup) to show the desired connections. Connect adjacent points connects to the x,z points as these are closest (attached.
A simple global approach would be to crank up the radius and max points on the connect adjacent points then iterate over the polylines to delete any that are below your desired threshold of verticality.
Far less precise but might get you close to what you need.