Community detection is an important research issue for understanding the structures of social networks. The existing community detection algorithms can be classified into two major classes: clustering based on modularity and spectral clustering. In this paper, we present a novel method for detecting community structures without prior information such as the number and size of communities in networks. This approach is based on a matrix called RS which enhances the cluster-properties in the data. We reveal the reason why a two-layer GCN is enough to achieve satisfied results. Our partition algorithm divides a network into different communities according to the similarity of the number of mutual neighbours among nodes, and makes use of a silhouette coefficient to determine the final unique partition. Experiments show that our community detection method can obtain accurate community structures on real-world networks, outperforming existing leading algorithms.