RandomGraph

RandomGraph[{n,m}]

gives a pseudorandom graph with n vertices and m edges.

RandomGraph[{n,m},k]

gives a list of k pseudorandom graphs.

RandomGraph[gdist,]

samples from the random graph distribution gdist.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Generate a random graph on 5 vertices and 6 edges:

In[1]:=
Click for copyable input
Out[1]=

Simulate a graph property distribution:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Scope  (12)

Options  (70)

Applications  (3)

Properties & Relations  (10)

Possible Issues  (1)

Neat Examples  (1)

See Also

BernoulliGraphDistribution  UniformGraphDistribution  BarabasiAlbertGraphDistribution  PriceGraphDistribution  WattsStrogatzGraphDistribution  DegreeGraphDistribution  SeedRandom

Introduced in 2010
(8.0)