摘要
通过对存储网的邻接矩阵数据结构进行修改,实现了顶点对之间最短路径及其长度的存储.根据树的特性,顶点对之间最短路径的保存通过二叉树的方式实现,这为使用最短路径的后续操作提供了方便.
Through the modified network's adjacency matrix data structure, it realizes the storage of the shortest path and its length between the pair of vertexes. According to the characteristics of the tree, the preservation of the shortest path between the pair of vertexes is implemented by the binary tree, which provides convenience to the followup operation.
出处
《西华师范大学学报(自然科学版)》
2010年第2期204-206,215,共4页
Journal of China West Normal University(Natural Sciences)
基金
四川省教育厅青年基金资助项目(2006B040)