Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

seedToNet

Produces a random network from a seed value


Description

Produces a reproducible undirected Erdos-Reyni random network using a particular seed value.

Usage

seedToNet(seed.no, nnodes=34, graph.prob=0.5)

Arguments

seed.no

a valid number to set the seed to.

nnodes

the number of nodes in the produced network.

graph.prob

the probability that each pair of nodes is connected.

Details

graph.prob effectively controls the sparsity of the network. All distances are set to 1.

Value

A GNARnet object.

Examples

#Generate the random graph from seed 10, with 5 nodes and connection prob 0.5
seedToNet(10,nnodes=5,graph.prob=0.5)

GNAR

Methods for Fitting Network Time Series Models

v1.1.1
GPL-2
Authors
Kathryn Leeming [aut], Guy Nason [aut], Matt Nunes [aut, cre], Marina Knight [ctb]
Initial release
2020-11-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.