getAllNestedComm: Find Nested Communities

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/linkcomm_misc.R

Description

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

Usage

1
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

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

## Find nested communities.
getAllNestedComm(lc)

linkcomm documentation built on Feb. 4, 2021, 5:05 p.m.