Learn R Programming

graphclust (version 1.3)

graphonSpectralClustering: Graph clustering using the pairwise graphon distances and spectral clustering

Description

Graph clustering using the pairwise graphon distances and spectral clustering

Usage

graphonSpectralClustering(allAdj, nbClusters, sig = 0.1, nbCores = 1)

Value

list with the obtained graph clusteirng ($clust) and the matrix with the pairwise graphon distances between all pairs of networks

Arguments

allAdj

list of adjacency matrices

nbClusters

number of clusters to be found

sig

parameter for Gaussian kernel used for the similarity matrix

nbCores

number of cores for parallelization.

Examples

Run this code
theta <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2))
obs <- rCollectSBM(rep(10,4), theta)$listGraphs
res <- graphonSpectralClustering(obs, 2, nbCores=1)

Run the code above in your browser using DataLab