vertex_covariate_dist function

Computes covariate distance between connected vertices