| igraph Reference Manual |
|---|
int igraph_rewire(igraph_t *graph, igraph_integer_t n, igraph_rewiring_t mode);
This function generates a new graph based on the original one by randomly
rewiring edges while preserving the original graph's degree distribution.
Please note that the rewiring is done "in place", so no new graph will
be allocated. If you would like to keep the original graph intact, use
igraph_copy() before.
Arguments:
|
The graph object to be rewired. |
|
Number of rewiring trials to perform. |
|
The rewiring algorithm to be used. It can be one of the following:
|
Returns:
|
Error code:
|
Time complexity: TODO.
<< 2.8. igraph_forest_fire_game — Generates a network according to the “forest fire game” |
2.10. igraph_growing_random_game — Generates a growing random graph. >> |