|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
WattsStrogatzGraphDistribution
WattsStrogatzGraphDistribution[n, p]
represents the Watts-Strogatz graph distribution for n-vertex graphs with rewiring probability p.
WattsStrogatzGraphDistribution[n, p, k]
represents the Watts-Strogatz graph distribution for n-vertex graphs with rewiring probability p starting from a 2k-regular graph.
DetailsDetails
- WattsStrogatzGraphDistribution[n, p] is equivalent to WattsStrogatzGraphDistribution[n, p, 2].
- The WattsStrogatzGraphDistribution is constructed starting from CirculantGraph[n, Range[k]] and rewiring each edge with probability p. Each edge is rewired by changing one of the vertices, making sure that no loop or multiple edge is created.
- WattsStrogatzGraphDistribution can be used with such functions as RandomGraph and GraphPropertyDistribution.
ExamplesExamplesopen allclose all
Basic Examples (2)Basic Examples (2)
Generate a pseudorandom graph:
| In[1]:= |
| Out[1]= | ![]() |
GlobalClusteringCoefficient as a function of rewiring probability:
| In[1]:= |
| Out[1]= | ![]() |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »



