choose.edges: Select edges for re-wiring.

Description Usage Arguments Value Author(s) References

View source: R/random_graphs.R

Description

This function 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

1
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 will be removed and two edges will be added between the four vertices.

Author(s)

Christopher G. Watson, [email protected]

References

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


brainGraph documentation built on Feb. 24, 2018, 1:01 a.m.