正在加载图片...
7.2.3 Graph类 1用邻接矩阵存储的Graph类 。Graph类声明 //图的最大顶点个数 const int MaxGraphSize 25 template<class T>class Graph private: SeqList<T>VertexList;//顶点表 /邻接矩阵 int edge[MaxGraphSize ]MaxGraphSize ] /当前顶点数 int graphsize 7.2.3 Graph类 1 用邻接矩阵存储的Graph类 ● Graph类声明 // 图的最大顶点个数 const int MaxGraphSize = 25 ; template<class T> class Graph { private: SeqList<T> VertexList ; //顶点表 //邻接矩阵 int edge[ MaxGraphSize ][ MaxGraphSize ] ; //当前顶点数 int graphsize ;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有