Learn R Programming

rSpectral (version 1.0.0.14)

spectral_graphNEL: 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)

Value

data.frame with node names and membership information

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

See Also

spectral_igraph_membership

Examples

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

Run the code above in your browser using DataLab