A Self-Stabilizing K-clustering algorithm for weighted graphs