GetWeightedDistanceFunc

Called when computing pairwise point distances between neighbours FromVID and ToVID, to allow for alternative distance metrics.