邻接表和队列实现广度优先遍历
摘要:
/*邻接表和队列实现广度优先遍历*/#include<stdio.h>#include<stdlib.h>#include<string.h>#define MAX_VERTEX_NUM 20/*无向邻接表的结构*/typedef struct ArcNode{ /*表节点*/int adjvex; /*邻接点*/struct ArcNode *nextarc;... 阅读全文
posted @ 2009-05-10 23:46 ZhangYiy 阅读(793) 评论(0) 推荐(0) 编辑