rpanet_linear_undirected_cpp: Preferential attachment network generation.

View source: R/RcppExports.R

rpanet_linear_undirected_cppR Documentation

Preferential attachment network generation.

Description

Preferential attachment network generation.

Usage

rpanet_linear_undirected_cpp(
  nstep,
  m,
  new_node_id,
  new_edge_id,
  node_vec1,
  node_vec2,
  s,
  edgeweight,
  scenario,
  pref_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.

node_vec1

Sequence of nodes in the first column of edgelist.

node_vec2

Sequence of nodes in the second column of edgelist.

s

Sequence of node strength.

edgeweight

Weight of existing and new edges.

scenario

Scenario of existing and new edges.

pref_vec

Sequence of node preference.

control

List of controlling arguments.

Value

Sampled network.


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