erdos.renyi.game(n, p.or.m, type="gnp",
directed = FALSE, loops = FALSE, ...)
gnp
(G(n,p) graph) or gnm
(G(n,m) graph). In G(n,m) graphs, the graph has loops
parameter is TRUE.
random.graph.game
is an alias to this function.
barabasi.game
g <- erdos.renyi.game(1000, 1/1000)
degree.distribution(g)
Run the code above in your browser using DataLab