采用Floyd算法计算任意两节点的距离我要分享

Floyd algorithm is used to calculate the distance between any two nodes

最短路径F算法 复杂网络 floyd 平均最短路径 节点间距离

关注次数: 278

下载次数: 0

文件大小: 1KB

代码分类: 智能算法

开发平台: matlab

下载需要积分: 1积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:

求复杂网络中两节点的距离、平均最短路径长度以及节点间最短路径条数。采用Floyd算法计算任意两节点的距离,并求最短路径条数用于计算介数。


English Description:

Find the distance between two nodes, the average shortest path length and the number of shortest paths between nodes in complex network. Floyd algorithm is used to calculate the distance between any two nodes, and the shortest path number is used to calculate the betweenness.


代码预览

Distance_F.m