spatial_dist function

Calculate Euclidean distance of edges and vertices