数据结构,图,邻接矩阵,广度深度遍历,源代码(Data structures, graphs, adjacency matrices, breadth, depth traversal, source code).docVIP

  • 1
  • 0
  • 约3.22千字
  • 约 14页
  • 2017-12-25 发布于湖北
  • 举报

数据结构,图,邻接矩阵,广度深度遍历,源代码(Data structures, graphs, adjacency matrices, breadth, depth traversal, source code).doc

数据结构,图,邻接矩阵,广度深度遍历,源代码(Data structures, graphs, adjacency matrices, breadth, depth traversal, source code) #定义无限32768 #定义好1 #定义错误1 #定义错误0 #定义真正的1 #包含iostream #包括 malloc。” 使用名称空间; typedef enum { DG,DN,UDG,UDN } GraphKind; typedef char vertexdata; typedef int AdjType; typedef int OtherInfo; typedef struct阿克诺德{ adjtype的; OtherInfo信息; } ArcNode; typedef struct { vertexdata vexs [ max_vertex_num ]; 阿克诺德弧[ max_vertex_num ] [ max_vertex_num ]; 国际vexnum,arcnum; GraphKind; } AdjMatrix; 在参观了[ max_vertex_num ]; int LocateVertex(邻接钜阵*克,vertexdata V) { int =错误,k; 为(k = 0;K<G - vexnum;K + +) 如果(G→vexs [K]

文档评论(0)

1亿VIP精品文档

相关文档