rpanet_linear_directed_cpp: Preferential attachment network generation.

View source: R/RcppExports.R

rpanet_linear_directed_cppR Documentation

Preferential attachment network generation.

Description

Preferential attachment network generation.

Usage

rpanet_linear_directed_cpp(
  nstep,
  m,
  new_node_id,
  new_edge_id,
  source_node,
  target_node,
  outs,
  ins,
  edgeweight,
  scenario,
  sample_recip,
  node_group,
  spref_vec,
  tpref_vec,
  control
)

Arguments

nstep

Number of steps.

m

Number of new edges in each step.

new_node_id

New node ID.

new_edge_id

New edge ID.

source_node

Sequence of source nodes.

target_node

Sequence of target nodes.

outs

Sequence of out-strength.

ins

Sequence of in-strength.

edgeweight

Weight of existing and new edges.

scenario

Scenario of existing and new edges.

sample_recip

Logical, whether reciprocal edges will be added.

node_group

Sequence of node group.

spref_vec

Sequence of node source preference.

tpref_vec

Sequence of node target preference.

control

List of controlling arguments.

Value

Sampled network.


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