登录
首页 » C/C++ » the-average-path-length

the-average-path-length

于 2021-04-21 发布 文件大小:13KB
0 87
下载积分: 1 下载次数: 10

代码说明:

  问题描述:平均路径长度是网络中另一个重要的特征度量,他是网络中所有节点对之间的平均最短距离。这里节点间的距离指的是从一个节点要经历的边的最小数目,其中所有节点之间的最大距离称为网络的直径。平均路径长度和直径衡量的是网络的传输性能与效率。平均路径长度的公式为 ,其中dij表示点i和j之间的最短距离(若dij不存在时,dij就不能加入,且分母要相应减1) 要求:输入邻接矩阵表示的图,计算其平均路径长度(Description of the problem: the average path length is another important network characteristics measure between all pairs of nodes in the network, the average shortest distance. Here the distance between nodes refers to the minimum number from one node to be subjected to the edge, wherein the maximum distance is referred to as the diameter of the network between all nodes. The average path length and diameter measurement of the performance and efficiency of the network' s transmission. The formula of the average path length, where dij indicates the shortest distance between points i and j (if dij is not present, dij can not join, and the denominator accordingly minus 1) requirements: Input adjacency matrix shows, to calculate its average path length)

文件列表:

程序_图的平均路径长度
.....................\DArray.c,5949,2011-06-17
.....................\DArray.h,3122,2011-06-17
.....................\LinkList.c,8816,2011-06-23
.....................\LinkList.h,2579,2011-06-17
.....................\main.c,1327,2011-06-23
.....................\MatrixGraph.c,12671,2007-06-22
.....................\MatrixGraph.h,3392,2011-06-17
.....................\readme.txt,290,2011-06-23

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696524资源总数
  • 103957会员总数
  • 51今日下载