Learn R Programming

linkcomm (version 1.0-14)

getAllNestedComm: 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.

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.

Details

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

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

Run this code
# NOT RUN {
## Generate graph and extract link communities.
g <- swiss[,3:4]
lc <- getLinkCommunities(g)

## Find nested communities.
getAllNestedComm(lc)
# }

Run the code above in your browser using DataLab