SCOREplus {ScorePlus} | R Documentation |
community detection method called SCORE+
Description
community detection method called SCORE+
Usage
SCOREplus(A, k, c = 0.1, r = NULL)
Arguments
A |
n-by-n binary symmtric adjacency matrix. |
k |
number of communities (>1). |
c |
(optional) tuning parameter for Graph Laplacian, default is 0.1. |
r |
(optional) latent dimension (>1), if not given, chosen between k and k+1 determined by eigen gap |
Value
A list containing
- label
Predicted community labels
- ratios
n-by-(K-1) or n-by-r ratio matrix.
- delta
calculated delta parameter
- eig.vec
Top r eigen vectors
- eig.val
Top r eigen values
Examples
library(igraphdata)
library(igraph)
data('karate')
A = get.adjacency(karate)
karate.plus.out = SCOREplus(A, 2)
karate.plus.out$labels
[Package ScorePlus version 0.1 Index]