Degree preserving rewiring process for directed networks.
dprewire_directed_cpp(
iteration,
nattempts,
tnode,
sout,
sin,
tout,
tin,
index_s,
index_t,
eta,
rewire_history
)Returns target node sequence, four directed assortativity coefficients after each iteration, and rewire history.
Integer, number of iterations for rewiring attempts.
Integer, number of rewiring attempts per iteration.
Vector, target node sequence - 1.
Vector, source nodes' out-degree.
Vector, source nodes' in-degree.
Vector, target nodes' out-degree.
Vector, target nodes' in-degree.
Index of source nodes' out- and in-degree.
index_s/index_t bridges the indices of source/target nodes and the
target structure eta.
Index of target nodes' out- and in-degree.
Matrix, target structure eta generated by
wdnet::get_eta_directed().
Logical, whether the rewiring history should be returned.