SCORE: community detection method called SCORE Spectral Clustering...

Description Usage Arguments Value Examples

Description

community detection method called SCORE Spectral Clustering On Ratios-of-Eigenvectors (SCORE)

Usage

1
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

1
2
3
4
5
6
library(igraphdata)
library(igraph)
data('karate')
A = get.adjacency(karate)
karate.out = SCORE(A, 2)
karate.out$labels

Example output

Attaching package:igraphThe following objects are masked frompackage:stats:

    decompose, spectrum

The following object is masked frompackage:base:

    union

 [1] 1 1 1 1 1 1 1 1 2 2 1 1 1 1 2 2 1 1 2 1 2 1 2 2 2 2 2 2 2 2 2 2 2 2

ScorePlus documentation built on June 14, 2019, 9:03 a.m.

Related to SCORE in ScorePlus...