Random weighted network generator

Share:

Description

This function creates a classical random network with random edge weights.

Usage

1
rg_w(nodes=100,arcs=300,weights=1,directed=TRUE,seed=NULL)

Arguments

nodes

number of nodes

arcs

number of arcs; if this value is between 0 and 1, a random network where each tie is based on this probability will be produced

weights

A tie weight vector to be randomly sampled.

directed

whether you want a directed or undirected network, values TRUE or FALSE

seed

the random seed. If you want it to be non-reproducable, use NULL otherwise, use a number

Value

Returns a one-mode network with random weights.

Note

version 1.0.0

Author(s)

Tore Opsahl; http://toreopsahl.com

References

http://toreopsahl.com/tnet/

Examples

1
rg_w(nodes=10,arcs=30,directed=FALSE,seed=1)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.