powered by
community detection method called SCORE Spectral Clustering On Ratios-of-Eigenvectors (SCORE)
SCORE(A, K, threshold = NULL)
n-by-n binary symmtric adjacency matrix.
number of communities.
(optional) the threshold of ratio matrix. By defalt is log(n).
log(n)
A list containing
n-by-(K-1) ratio matrix.
A vector of integer indicating the cluster to which each point allocated.
# NOT RUN { library(igraphdata) library(igraph) data('karate') A = get.adjacency(karate) karate.out = SCORE(A, 2) karate.out$labels # }
Run the code above in your browser using DataLab