SCORE {ScorePlus} | R Documentation |
community detection method called SCORE Spectral Clustering On Ratios-of-Eigenvectors (SCORE)
Description
community detection method called SCORE Spectral Clustering On Ratios-of-Eigenvectors (SCORE)
Usage
SCORE(A, K, threshold = NULL)
Arguments
A |
n-by-n binary symmtric adjacency matrix. |
K |
number of communities. |
threshold |
(optional) the threshold of ratio matrix. By defalt is |
Value
A list containing
- R
n-by-(K-1) ratio matrix.
- labels
A vector of integer indicating the cluster to which each point allocated.
Examples
library(igraphdata)
library(igraph)
data('karate')
A = get.adjacency(karate)
karate.out = SCORE(A, 2)
karate.out$labels
[Package ScorePlus version 0.1 Index]