文件名称:dajacency
介绍说明--下载内容均来自于网络,请自行研究使用
有关离散数学的编程
实验四:邻接矩阵
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