rg_w {tnet} | R Documentation |
This function creates a random network with random edge weights.
rg_w(nodes=100,arcs=300,max.weight=10,directed=TRUE,seed=NULL)
nodes |
number of nodes |
arcs |
number of arcs |
max.weight |
maximum weight, weights are allocated values randomly between 1 and this number |
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 |
Returns a random edgelist with random weights.
version 1.0.0
Tore Opsahl; http://toreopsahl.com
http://opsahl.co.uk/tnet/
rg_w(nodes=10,arcs=30,max.weight=5,directed=FALSE,seed=1)