- /
-
random network
on 12 Oct 2021
- 6
- 53
- 1
- 0
- 264
rng(3)
X=randn(2e3,1e3);
C=X*X'/2e3;
adjmat=C>0.03;
G=graph(adjmat,'omitselfloops');
D = degree(G);
index = find(degree(G) <2);
D(index) = [];
G = rmnode(G,index);
plot(G,'layout','force','EdgeColor',[0.5 0.5 0.5],'NodeCData',D,'MarkerSize',1+D/30,'Marker','o')
colormap hot
axis off