which.communities function

Extract Community Membership for Nodes

Extract Community Membership for Nodes

This function returns the community IDs of the communities to which one or more nodes belong.

which.communities(x, nodes)

Arguments

  • x: An object of class linkcomm or OCG.
  • nodes: A character vector specifying the nodes.

Returns

An integer vector of community IDs.

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

Examples

## Generate graph and extract OCG communities. g <- swiss[,3:4] oc <- getOCG.clusters(g) ## Get edges from community 1. which.communities(oc, nodes = 1)
  • Maintainer: Alex T. Kalinka
  • License: GPL (>= 2)
  • Last published: 2021-02-04

Downloads (last 30 days):