文件名称:dajacency
-
所属分类:
- 标签属性:
- 上传时间:2013-12-05
-
文件大小:775byte
-
已下载:1次
-
提 供 者:
-
相关连接:无
-
下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
有关离散数学的编程
实验四:邻接矩阵
1.编写一段代码,接收键盘的输入定点的数量,并以输入的整数对作为边来建立图形的邻接矩阵(无向权重图)。
例如 : 5,6,12
表示定点5和定点6间有边,边的权重为 12。
2 打印出邻接矩阵。
3.根据第一步得到的邻接矩阵计算每个结点的度数。
-Experiment IV: adjacency matrix
1. Write a piece of code, the number of sentinel receive keyboard input, and an integer input side to build on as the adjacency matrix graph (undirected weighted figure).
For example: 5,6,12
Said fixed point 5 and 6 have the edge, the edge weight is 12.
2 Print out the adjacency matrix.
3. Calculated according to the degree of each node adjacency matrix obtained by the first step.
实验四:邻接矩阵
1.编写一段代码,接收键盘的输入定点的数量,并以输入的整数对作为边来建立图形的邻接矩阵(无向权重图)。
例如 : 5,6,12
表示定点5和定点6间有边,边的权重为 12。
2 打印出邻接矩阵。
3.根据第一步得到的邻接矩阵计算每个结点的度数。
-Experiment IV: adjacency matrix
1. Write a piece of code, the number of sentinel receive keyboard input, and an integer input side to build on as the adjacency matrix graph (undirected weighted figure).
For example: 5,6,12
Said fixed point 5 and 6 have the edge, the edge weight is 12.
2 Print out the adjacency matrix.
3. Calculated according to the degree of each node adjacency matrix obtained by the first step.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
邻接矩阵.cpp