Scilab Function
Last update : 5/9/2006
ws - create the WS small world model
Calling Sequence
-
[a,b] = ws(N,K,P)
Parameters
-
N
: integer
-
K
: integer
-
P
: a real number
-
a
: row vector of the numbers of the tail nodes of the graph (its size is the number of edges of the graph)
-
b
: row vector of the numbers of the head nodes of the graph (its size is the number of edges of the graph)
Description
-
ws creates the WS small-world network. N is the network size, K is the average degree, P is the rewired probability. Note the K must is even here.
Examples
[a b]=ws(10000,3,0.5);
g=make_graph('ws',0,10000,a,b);
See Also
er
,
ba
,
bbv
,
sba
,
Authors
-
Wubo