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

1
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

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.