get.shared.nodes: Get Nodes Shared by Communities

Description Usage Arguments Value Author(s) References Examples

View source: R/linkcomm_misc.R

Description

This function returns the nodes that are shared by specific sets of communities.

Usage

1
get.shared.nodes(x, comms)

Arguments

x

An object of class linkcomm or OCG.

comms

An integer vector giving the community IDs for which an intersecting set of shared nodes should be returned.

Value

A character vector giving the shared node names.

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 link communities.
g <- swiss[,3:4]
lc <- getLinkCommunities(g)

## Get shared nodes for communities 1 and 7.
get.shared.nodes(lc, comms = c(1,7))

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