Learn R Programming

brainGraph (version 0.72.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(graph, cl = graph$transitivity, max.iters = 100)

Arguments

graph
The graph 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

See Also

choose.edges, rewire, transitivity, keeping_degseq