![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
图的遍历
文章平均质量分 87
Kavin_Liang
Stay hungry. Stay foolish
展开
-
Saving James Bond - Easy Version
Saving James Bond - Easy VersionThis time let us consider the situation in the movie “Live and Let Die” in which James Bond, the world’s most famous spy, was captured by a group of drug dealers. He was原创 2015-10-14 15:11:34 · 611 阅读 · 0 评论 -
图的表示和遍历
图的表示图(Graph)是由顶点(Vertex)和边(Edge)构成的一种集合,及 G=(V,E)G = (V, E),图在数据结构中有两种表示方式:邻接矩阵和邻接链表邻接矩阵对于图G=(V,E)G = (V, E)的邻接矩阵的表示方式,通常是将图G的节点编为0,1,2,3,...,|V−1|0, 1, 2, 3, ..., |V-1|,这种编号是任意的也可以从1开始进行编号,那么G的邻接矩阵表示由原创 2015-10-13 09:07:05 · 1192 阅读 · 0 评论