A Clustering Algorithm for Weighted Graph Based on Minimum Cut