Write a program to read integers into an n x n array. Then determine whether that matrix is a valid adjacency matrix for a simple undirected graph. If the matrix represents a valid adjacency matrix, find the degree of each vertex along with the total number of edges. If the matrix does not represent a valid adjacency matrix, output INVALID
Sample input file:
2
4
0 0 1 1
0 0 0 1
1 0 0 0
0 1 0 0
5
0 1 1 0 1
1 0 0 1 0
1 0 0 0 1
0 1 0 0 1
1 0 1 1 0
Sample output file:
Cerise Wuthrich
Matrix 1
INVALID
Matrix 2
Degree of:
Vertex A: 3
Vertex B: 2
Vertex C: 2
Vertex D: 2
Vertex E: 3
Number of edges: 6
Specific requirements: