powered by
This function creates a classical random network with random edge weights.
rg_w(nodes=100,arcs=300,weights=1,directed=TRUE,seed=NULL)
number of nodes
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
A tie weight vector to be randomly sampled.
whether you want a directed or undirected network, values TRUE or FALSE
the random seed. If you want it to be non-reproducable, use NULL otherwise, use a number
Returns a one-mode network with random weights.
http://toreopsahl.com/tnet/
# NOT RUN { rg_w(nodes=10,arcs=30,directed=FALSE,seed=1) # }
Run the code above in your browser using DataLab