Learn R Programming

brainGraph (version 2.7.3)

choose.edges: Select edges for re-wiring.

Description

choose.edges selects edges to be re-wired when simulating random graphs while controlling for clustering. It is based on the algorithm by Bansal et al. (2009), BMC Bioinformatics.

Usage

choose.edges(A, degs.large)

Arguments

A

Numeric (adjacency) matrix

degs.large

Integer vector of vertex numbers with degree greater than one

Value

A data frame with four elements; two edges (y1, z1) and (y2, z2) will be removed, and two edges (y1, y2) and (z1, z2) will be added between the four vertices.

References

Bansal S., Khandelwal S., Meyers L.A. (2009) Exploring biological network structure with clustered random networks. BMC Bioinformatics, 10:405-421.