ws小世界网络matlab程序 %%%%%%% The initial regular network for i=1:n for j=1:m i0=i+j; i1=i-j; if i0>n i0=i0-n; end a(i,i0)=1; a(i0,i)=1; end end