文件名称:612109301
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 385kb
- 下载次数:
- 0次
- 提 供 者:
- 风*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
要求采用邻接矩阵作为无向图的存储结构,邻接表作为有向图的存储结构,完成无向图和有向图的建立,并对建立好的图进行深度和广度优先遍历。具体实现要求:
1. 通过键盘输入图的顶点和边信息,分别构造一个无向图的邻接矩阵和一个有向图的邻接表。
2. 分别对建立好的两个图进行深度和广度优先遍历,输出相应的遍历序列。
3. 统计两个图的连通分量的个数。
-Require the use of adjacency matrix as the storage structure of an undirected graph, adjacency table as the storage structure of directed graphs, complete undirected graph and the establishment of the graph, and create good depth and breadth-first graph traversal. Specific implementation requirements: 1. Through the keyboard input graph vertices and edges information, construct an undirected graph, respectively, the adjacency matrix and adjacency to a table. 2. Are two graphs on the establishment of good depth and breadth-first traversal, the output corresponding traversal sequence. 3. Statistics of two graphs the number of connected components.
1. 通过键盘输入图的顶点和边信息,分别构造一个无向图的邻接矩阵和一个有向图的邻接表。
2. 分别对建立好的两个图进行深度和广度优先遍历,输出相应的遍历序列。
3. 统计两个图的连通分量的个数。
-Require the use of adjacency matrix as the storage structure of an undirected graph, adjacency table as the storage structure of directed graphs, complete undirected graph and the establishment of the graph, and create good depth and breadth-first graph traversal. Specific implementation requirements: 1. Through the keyboard input graph vertices and edges information, construct an undirected graph, respectively, the adjacency matrix and adjacency to a table. 2. Are two graphs on the establishment of good depth and breadth-first traversal, the output corresponding traversal sequence. 3. Statistics of two graphs the number of connected components.
相关搜索: 连通分量
(系统自动生成,下载前可以参看下载内容)
下载文件列表
612109301 赵慧\prog2\adj_list_dir_graph.h
..............\.....\adj_list_graph_vex_node.h
..............\.....\adj_matrix_undir_graph.h
..............\.....\Debug\main.obj
..............\.....\.....\prog2.exe
..............\.....\.....\prog2.ilk
..............\.....\.....\prog2.pch
..............\.....\.....\prog2.pdb
..............\.....\.....\vc60.idb
..............\.....\.....\vc60.pdb
..............\.....\lk_list.h
..............\.....\main.cpp
..............\.....\node.h
..............\.....\prog2.dsp
..............\.....\prog2.dsw
..............\.....\prog2.ncb
..............\.....\prog2.opt
..............\.....\prog2.plg
..............\.....\utility.h
..............\.....\Debug
..............\prog2
612109301 赵慧
..............\.....\adj_list_graph_vex_node.h
..............\.....\adj_matrix_undir_graph.h
..............\.....\Debug\main.obj
..............\.....\.....\prog2.exe
..............\.....\.....\prog2.ilk
..............\.....\.....\prog2.pch
..............\.....\.....\prog2.pdb
..............\.....\.....\vc60.idb
..............\.....\.....\vc60.pdb
..............\.....\lk_list.h
..............\.....\main.cpp
..............\.....\node.h
..............\.....\prog2.dsp
..............\.....\prog2.dsw
..............\.....\prog2.ncb
..............\.....\prog2.opt
..............\.....\prog2.plg
..............\.....\utility.h
..............\.....\Debug
..............\prog2
612109301 赵慧