Learn R Programming

wdnet (version 1.2.3)

rpanet_bag_cpp: Preferential attachment algorithm for simple situations, i.e., edge weight equals 1, each step adds one new edge.

Description

Preferential attachment algorithm for simple situations, i.e., edge weight equals 1, each step adds one new edge.

Usage

rpanet_bag_cpp(
  snode,
  tnode,
  scenario,
  nnode,
  nedge,
  delta_out,
  delta_in,
  directed
)

Value

Returns a list that includes the total number of nodes, sequences of source and target nodes.

Arguments

snode

Source nodes.

tnode

Target nodes.

scenario

Sequence of alpha, beta, gamma, xi, rho scenarios.

nnode

Number of nodes in seed network.

nedge

Number of edges in seed network.

delta_out

Tuning parameter.

delta_in

Tuning parameter.

directed

Whether the network is directed.