图邻接表创建法和深度遍历.docVIP

  • 0
  • 0
  • 约2.89万字
  • 约 4页
  • 2017-08-17 发布于河南
  • 举报
图邻接表创建法和深度遍历

//********************************************** //程序:树的创建及深度遍历 //Scharf //********************************************** #includestdio.h #includemalloc.h #define MaxVerNum 100 /*设定为100存储空间*/ int visited[MaxVerNum]; //****************************************** typedef struct node{ int adjvex; struct node *next; }EdgeNode; //****************************************** // 创建顶点结点 //****************************************** typedef struct { char vertex; EdgeNode *firstedge; }VertexNode; //****************************************** // 创建以邻接表方式存储的图类型 //**************

文档评论(0)

1亿VIP精品文档

相关文档