Learn R Programming

snowboot (version 0.5.0)

local.network.MR.new5: Construct Artificial Networks

Description

This function constructs an artificial network from a given distribution. Only 11 distributions are available.

Usage

local.network.MR.new5(n, distrib, param = NULL, degree = NULL,
  take.p = 0.05)

Arguments

n
The number of nodes in the desired network.
distrib
An atomic character representing the desired degree distribution. User may choose from 11 available distributions: "fixed", "pois", "ztpois", "geom", "nbinom", "ztgeom", "poly.log", "logarithmic", "power.law", "full" (fully connected), or "none" (no eleme
param
The distribution parameters. If the function is "fixed", param is a vector of degrees.
degree
An optional vector of degrees that must be of length n. The default is degree = NULL.
take.p
A number between 0 and 1 representing the proportion to take for elimiation with each iteration.

Value

  • A list consisting of
  • edgesThe edgelist of the network. A two column matrix where each row is an edge.
  • degreeThe degree sequence of the network, which is an integer vector of length n.
  • degree.leftA vector of length n that should be all zeroes.
  • nThe network order. The order for every network is 2000.

Examples

Run this code
a <- local.network.MR.new5(1000,"poly.log",c(2,13))

Run the code above in your browser using DataLab