rpanet_bag_cpp: Preferential attachment algorithm for simple situations,...

View source: R/RcppExports.R

rpanet_bag_cppR Documentation

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
)

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.

Value

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


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