节点文献
图的广度优先遍历的算法实现
The algorithm realization of breadth-first-search of the graph
【摘要】 图的广度优先遍历与树的按层次遍历相似,遍历的思路是对图中的每个顶点进行访问且只访问一次.要遍历图,首先要把图采用某种存储结构存到内存之中.本文采用邻接表存储,并在此基础上进行广度优先遍历.
【Abstract】 According to graph’s breadth-first-search similar to the tree’s level traverse,train of thought of visited is a visit to every elment of the graph.Moreever,to traverse the graph,first to chart a storage structure save to memory.In this paper,we can save the graph in the way of adjacency list,the operate the breadth-first-search.
- 【文献出处】 南阳师范学院学报 ,Journal of Nanyang Normal University , 编辑部邮箱 ,2012年12期
- 【分类号】TP311.12;TP301.6
- 【被引频次】4
- 【下载频次】438