文件名称:PShortP
介绍说明--下载内容均来自于网络,请自行研究使用
程序首先利用include的手段将文件graph0.cpp包含进来,在main()函数调用由图的邻接矩阵建立图creatgraph与取顶点i的值gervalue(const int i)的函数。随后调用pshorpath(adjmatrix &G,int v0,int dist[],int path[])函数,该函数就是狄克斯特拉算法对应的函数。-Procedures include the means of the first to use the file that contains graph0.cpp come, in the main () function call by the graph adjacency matrix to establish plans and creatgraph vertex i check the value of gervalue (const int i) function. Then call pshorpath (adjmatrix
(系统自动生成,下载前可以参看下载内容)
下载文件列表
PShortP
.......\PShortP.h
.......\PShortP1.cpp
.......\PShortP.h
.......\PShortP1.cpp