getAllNestedComm {linkcomm}R Documentation

Find Nested Communities

Description

This function returns communities of nodes that are entirely nested within other larger communities of nodes.

Usage

getAllNestedComm(x, verbose = FALSE, plot = FALSE)

Arguments

x

An object of class linkcomm.

verbose

Logical, whether to print to the screen a warning that individual community IDs are not clustered in any other communities. Defaults to FALSE.

plot

Logical, whether to plot graphs of the nested communities. Defaults to FALSE.

Details

Nested community structures may reveal interesting relationships among sets of nodes.

Value

A named list of integer vectors; names are integers referring to nested communities, and the integer vectors are the communities that the named community is nested in.

Author(s)

Alex T. Kalinka alex.t.kalinka@gmail.com

References

Kalinka, A.T. and Tomancak, P. (2011). linkcomm: an R package for the generation, visualization, and analysis of link communities in networks of arbitrary size and type. Bioinformatics 27, 2011-2012.

See Also

getNestedHierarchies

Examples

## Generate graph and extract link communities.
g <- swiss[,3:4]
lc <- getLinkCommunities(g)

## Find nested communities.
getAllNestedComm(lc)

[Package linkcomm version 1.0-14 Index]