1.完整项目描述和程序获取
>面包多安全交易平台:https://mbd.pub/o/bread/ZJeamJ5x
>如果链接失效,可以直接打开本站店铺搜索相关店铺:
>如果链接失效,程序调试报错或者项目合作也可以加微信或者QQ联系。
2.部分仿真图预览
3.算法概述
基于BBV网络的节点强度分布算法。BBV网络是一种基于社交网络的模型,它可以模拟社交网络中的节点之间的相互作用。该算法通过对网络结构的分析和节点间的相互作用,计算了每个节点的强度,并对节点强度进行了分布。我们对该算法进行了实验验证,结果表明该算法能够有效地计算节点强度,提高网络分析的准确性和可靠性。
4.部分源码
%初始化
Num = 16;
C0 = 2;
Weight = C0 - C0*eye(Num);
for ij = Num:2000
ij
%权值和
Wsum = sum(Weight);
B1 = find(Wsum);
B1_L = length(B1);
%选择连接
k = [0,cumsum(Wsum(B1)/sum(Wsum(B1)))];
%选择连接点
Weight = [Weight,zeros(Num,1)];
Weight = [Weight;zeros(1,Num+1)];
%连接第1个节点
Per1 = rand;
for i=1:B1_L
..................................................................
end
%连接第2个节点
Per2 = rand;
while(k(i1)<=Per2 & k(i1+1)>Per2)
Per2 =rand;
end
for i=1:B1_L
if(k(i)<=Per2 & k(i+1)>Per2)
i2=i;
Weight(Num+1,B1(i2))=C0;
%增边
Weight(B1(i2),Num+1)=C0;
%权变
Wsum=sum(Weight);
for j=1:Num
if Weight(B1(i2),j)~=0
Weight(B1(i2),j)=Weight(B1(i2),j)+Weight(B1(i2),j)*C0/Wsum(B1(i2));
Weight(j,B1(i2))=Weight(j,B1(i2))+Weight(j,B1(i2))*C0/Wsum(B1(i2));
end
end
break;
end
end
Num=Num+1;
end
%strengh的分布图
Strengh = tabulate(fix(Wsum));
Index = find(Strengh(:,3)>0);
Index2 = Index(5:end-5);
figure;
loglog(Strengh(Index2,1),Strengh(Index2,3)/100,'bs',...
'LineWidth',1,...
'MarkerSize',6,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[0.2,0.9,0.0]);
title('strengh')
xlabel('S');
ylabel('P/s');
save R1.mat Strengh Index2
12_045_m