目录
1.算法仿真效果
matlab2022a仿真结果如下:
2.MATLAB源码
%******************************************************************
%订阅用户可以获得任意一份完整代码,私信博主,留言文章链接和邮箱地址,
%一般第二天下午4点前会将完整程序发到邮箱中。
%******************************************************************
W= [0 190 70 115 270 160;
190 0 100 110 215 50;
70 100 0 140 120 220;
115 110 140 0 175 80;
270 215 120 175 0 310;
160 50 220 80 310 0]
%W is the adjacency matrix with weights
%this is the matrix that describes the
%network in lect