Draw line between sidelong points

hi, I have points inside multiple trees, I want to draw line between those horizontal point. Unfortunately because I each tree there is different number of point I get some wrong lines. i attached image of what I’m trying to do.
the gh file is missing because I done have any idea how to to it.
hope ist ok…

If each row is a branch and you are connecting the points with Polyline, you can explode the polylines and cull segments that are longer that the distance between columns.

If you had posted your GH file with internalized geometry, I would have done it instead of describing it.

Another solution would be to use Point Groups.