getNestedHierarchies function

Find Nested Structures in Communities

Find Nested Structures in Communities

This function determines whether a particular community is nested within any other communities.

getNestedHierarchies(x, clusid = 1, verbose = TRUE, plot = TRUE, ids = FALSE)

Arguments

  • x: An object of class linkcomm.
  • clusid: An integer value indicating the community ID whose nesting structure will be tested. Defaults to 1.
  • verbose: Logical, whether to display a warning that a particular community is not nested in any other communities on the screen. Defaults to FALSE.
  • plot: Logical, whether to plot a graph layout of the nested community.
  • ids: Logical, whether to return only the community IDs that the community is nested in, or the node names also. Defaults to FALSE.

Returns

Either a list of character vectors, each giving the nodes that the community is nested in, or an integer vector of community IDs that the community is nested in.

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.

Author(s)

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

See Also

getAllNestedComm

Examples

## Generate graph and extract link communities. g <- swiss[,3:4] lc <- getLinkCommunities(g) ## Determine if community 1 is nested in any other communities. getNestedHierarchies(lc, clusid = 1)
  • Maintainer: Alex T. Kalinka
  • License: GPL (>= 2)
  • Last published: 2021-02-04