rewire_edges() creates a copy of the input graph,
and rewires edges randomly with probability p for each edge.
Usage
watts_strogatz_game(dim, size, nei, p, edge_type_sw = 0L)
rewire_edges(graph, p, edge_type_sw = 0L)Arguments
- dim
The dimension of the lattice.
- size
The size of the lattice along each dimension.
- nei
The size of the neighborhood for each vertex.
- p
The probability of edge creation or rewiring.
- edge_type_sw
The types of edges to allow in the graph: {0: simple, 1: loops, 6: multiple, 7: loops and multiple}.
- graph
An
igraph_ptrobject.
Value
An igraph_ptr object.
See also
rewire() for the degree-preserving edge rewiring model.