added kmeans to graph