spectral_graphNEL {rSpectral}R Documentation

Spectral clustering for graphNEL objects

Description

Spectral clustering for graphNEL objects

Usage

spectral_graphNEL(g, Cn_min = 1L, tol = 1e-05, names = 1L, fix_neig = 0L)

Arguments

g

graphNEL object

Cn_min

minimum cluster size

tol

tolerance

names

are we dealing with alphaNumeric (1) or numeric (!1) ids

fix_neig

whether to fix neighbouring nodes found in same community

Value

data.frame with node names and membership information

See Also

spectral_igraph_membership

Examples

library(graph)
V = letters[1:12]
g2 = randomEGraph(V, edges=20)
mem.df = spectral_graphNEL(g2)
head(mem.df)

[Package rSpectral version 1.0.0.10 Index]