|
|
| File Information |
| Description |
The Erdos-Renyi (Erdos and Renyi, 1959) is the first ever proposed algorithm for the formation of random graphs. It selects with equal probability pairs of nodes from the graph set of nodes and connects them with a predefined probability.
To rewire, with probability (p=0.01) a 100 vertex regular graph (vertex deg=4):
>>G=erdosRenyi(40,0.01,4);
To see display the graph issue:
>>plotGraphBasic(G,6,1);
6 is the marker size. 1 tells function to add labels (0 disables labbeling) |
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (6) |
| 24 Mar 2005 |
lizhen you
|
|
|
| 17 May 2005 |
roger lin
|
|
|
| 04 Oct 2005 |
LIU Jie
|
|
|
| 29 Apr 2007 |
ziqiang zuo
|
|
|
| 20 Aug 2009 |
David
|
|
|
| 26 May 2011 |
A.Y.
|
|
|
| Updates |
| 25 Jan 2005 |
Major changes
i) stablish initial node degree for the regular lattice.
ii) Implements new data structure for storing graph.
iii) Bug fixed: missing vertex in display |
|
Contact us at files@mathworks.com