Learn R Programming

ScorePlus (version 0.1)

SCORE: 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 log(n).

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

Run this code
# 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