rpa_control_newedge | R Documentation |
rpanet
.Control new edges in each step. Defined for rpanet
.
rpa_control_newedge(
sampler = NULL,
snode.replace = TRUE,
tnode.replace = TRUE,
node.replace = TRUE
)
sampler |
A function used for sampling the number of new edges to be
added at each step. If |
snode.replace |
Logical. Determines whether the source nodes in the same step should be sampled with replacement. Defined for directed networks. |
tnode.replace |
Logical. Determines whether the target nodes in the same step should be sampled with replacement. Defined for directed networks. |
node.replace |
Logical. Determines whether the nodes in the same step should be sampled with replacement. Defined for undirected networks. If FALSE, self-loops will not be allowed under beta scenario. |
A list of class rpacontrol
with components sampler
,
snode.replace
, tnode.replace
and node.replace
with
meanings as explained under 'Arguments'.
my_rpois <- function(n) rpois(n, lambda = 2) + 1
control <- rpa_control_newedge(
sampler = my_rpois,
node.replace = FALSE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.