Euclidean Distances, soft and spectral Clustering on Weighted Graphs