powered by
Produces a reproducible undirected Erdos-Reyni random network using a particular seed value.
seedToNet(seed.no, nnodes=34, graph.prob=0.5)
a valid number to set the seed to.
the number of nodes in the produced network.
the probability that each pair of nodes is connected.
A GNARnet object.
graph.prob effectively controls the sparsity of the network. All distances are set to 1.
graph.prob
# NOT RUN { #Generate the random graph from seed 10, with 5 nodes and connection prob 0.5 seedToNet(10,nnodes=5,graph.prob=0.5) # }
Run the code above in your browser using DataLab