Learn R Programming

graphclust (version 1.3)

sampleDPA: generation of a network of the directed preferential attachment (DPA) model

Description

generation of a network of the directed preferential attachment (DPA) model

Usage

sampleDPA(param)

Value

adjacency matrix of generated network

Arguments

param

list with the following elements: $R (= number of iterations), $alpha, $beta , $deltaIn, $deltaOut (parameters of the DPA model)

Examples

Run this code
param <- list(R = 500, alpha = .04, beta = .02, deltaIn = 100, deltaOut = 100)
A <- sampleDPA(param)
A

Run the code above in your browser using DataLab