which.communities: Extract Community Membership for Nodes

Description Usage Arguments Value Author(s) References Examples

Description

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

Usage

1

Arguments

x

An object of class linkcomm or OCG.

nodes

A character vector specifying the nodes.

Value

An integer vector of community IDs.

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.

Examples

1
2
3
4
5
6
## Generate graph and extract OCG communities.
g <- swiss[,3:4]
oc <- getOCG.clusters(g)

## Get edges from community 1.
which.communities(oc, nodes = 1)


Search within the linkcomm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.