The purpose of this paper is to propose an effective clustering algorithm. The principle idea of this algorithm depends on the graphic theory by using the terms and definitions of the graph and the tree. The proposed algorithm was applied on different human face images taken from ORL database, and it gives good clustering results with small rate of error. Matlab version (8) was used to implement this algorithm.