dprewire_undirected_cpp | R Documentation |
Degree preserving rewiring process for undirected networks.
dprewire_undirected_cpp(
iteration,
nattempts,
node1,
node2,
degree1,
degree2,
index1,
index2,
e,
rewire_history
)
iteration |
Integer, number of iterations for rewiring attempts. |
nattempts |
Integer, number of rewiring attempts per iteration. |
node1 |
Vector, first column of edgelist. |
node2 |
Vector, second column of edgelist. |
degree1 |
Vector, degree of node1 and node2. |
degree2 |
Vector, degree of node2 and node1. degree1 and degree2 are used to calculate assortativity coefficient, i.e., degree correlation. |
index1 |
Index of the first column of edgelist.
|
index2 |
Index of the second column of edgelist. |
e |
Matrix, target structure (eta) generated by
|
rewire_history |
Logical, whether the rewiring history should be returned. |
Returns node sequences, assortativity coefficient after each iteration, and rewiring history.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.