nvd {nevada}R Documentation

Network-Valued Data Constructor

Description

This is the constructor for objects of class nvd.

Usage

nvd(
  model = "smallworld",
  n = 1L,
  num_vertices = 25L,
  model_params = list(dim = 1L, nei = 4L, p = 0.15),
  seed = 1234
)

Arguments

model

A string specifying the model to be used for sampling networks (current choices are: "sbm", "k_regular", "gnp", "smallworld", "pa", "poisson" and "binomial"). Defaults to "smallworld".

n

An integer specifying the sample size. Defaults to 1L.

num_vertices

An integer specifying the order of the graphs to be generated (i.e. the number of nodes). Defaults to 25L.

model_params

A named list setting the parameters of the model you are considering. Defaults to list(dim = 1L, nei = 4L, p = 0.15) which sets defaults parameters for the Watts-Strogatz small-world model generator.

seed

An integer specifying the random generator seed. Defaults to 1234.

Value

A nvd object which is a list of igraph objects.

Examples

smallworld_params <- list(dim = 1L, nei = 4L, p = 0.15)
nvd(model_params = smallworld_params)

[Package nevada version 0.2.0 Index]