Learn R Programming

brainGraph (version 1.0.0)

sim.rand.graph.clust: Simulate a random graph with given degree sequence and clustering.

Description

This function will simulate a random graph with a given degree sequence and clustering coefficient. This function calls choose.edges to decide which edges will be re-wired.

Usage

sim.rand.graph.clust(g, cl = g$transitivity, max.iters = 100)

Arguments

g
An igraph graph object from which null graphs are simulated
cl
The clustering measure (default: transitivity)
max.iters
The maximum number of iterations to perform (default: 100)

Value

An igraph graph object

References

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

See Also

choose.edges, rewire, transitivity, keeping_degseq