I’m trying to create a mesh relaxation effect using a geometry nodes network. I thought the below network would work until I realized that the Sample Nearest node was returning the current vertex rather than the vertex nearest to the current vertex.

Anyhow, I was wondering if there was any way to determine for any vertex the position of the closest vertex connected by an edge? I was thinking of using an Edge Vertices node to create a boolean array indicating the neighbors of a given vertex, but I’m not sure how to do that and neither Sample Nearest nor Geometry Proximity allow you to input a boolean mask anyway.