dprewire_directed_cpp: Degree preserving rewiring process for directed networks.

View source: R/RcppExports.R

dprewire_directed_cppR Documentation

Degree preserving rewiring process for directed networks.

Description

Degree preserving rewiring process for directed networks.

Usage

dprewire_directed_cpp(
  iteration,
  nattempts,
  tnode,
  sout,
  sin,
  tout,
  tin,
  index_s,
  index_t,
  eta,
  rewire_history
)

Arguments

iteration

Integer, number of iterations for rewiring attempts.

nattempts

Integer, number of rewiring attempts per iteration.

tnode

Vector, target node sequence - 1.

sout

Vector, source nodes' out-degree.

sin

Vector, source nodes' in-degree.

tout

Vector, target nodes' out-degree.

tin

Vector, target nodes' in-degree.

index_s

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_t

Index of target nodes' out- and in-degree.

eta

Matrix, target structure eta generated by wdnet::get_eta_directed().

rewire_history

Logical, whether the rewiring history should be returned.

Value

Returns target node sequence, four directed assortativity coefficients after each iteration, and rewire history.


wdnet documentation built on May 29, 2024, 9:32 a.m.