Learn R Programming

fcd (version 0.1)

spectral.clustering: Spectral clustering and its variant.

Description

Use spectral clustering and its variant for community detection in a network.

Usage

spectral.clustering(A, normalised = TRUE, score = FALSE, K = 2, adj = FALSE)

Arguments

A
input matrix -- adjacency matrix of an observed graph based on the non-isolated nodes, of dimension n.noniso x n.noniso, where n.noniso is the number of the non-isolated nodes.
normalised
a logic variable indicating whether normalised Laplacian matrix is used in community detection.
score
a logical variable indicating whether the RoE is used.
K
input integer -- the pre-specified number of communities, with the default value 2.
adj
adjacency matrix is used or not.

Value

a vector of labels are returned.