SVN_clusters {SVN}R Documentation

Find clusters in Statistically Validated Networks

Description

Find clusters in Statistically Validated Networks

Usage

SVN_clusters(links, cluster.method = "infomap")

Arguments

links

an object obtained from the SVN_links function

cluster.method

a string, either "infomap" or "louvain", that selects the clustering method

Value

an igraph communities object

Examples

 M=matrix(rbinom(200,size = 1,0.5),nrow=50)
mylinks=SVN_links(M)
# no links, then
print(mylinks)

# another example
x=c(1,0,0,0,0,0,1,1,1,1,0,0)
xx=c(1,1,0,0,0,0,1,1,1,1,0,0)
xrev=rev(x)
w=sample(x,length(x))
M=rbind(x,xx,xrev,w)
mylinks=SVN_links(M)

## if one wants clusters as well
myclusters=SVN_clusters(mylinks)


[Package SVN version 1.0.1 Index]