Computers and Technology

Write a program that will read from a file specified on the command line and determine from the graph's adjacency matrix whether or not it is a tree.
example:
./a. out graph. txt
output: the graph is a tree!
contents of graph. txt will be something like this:
5
0 1 0 0 0
1 0 1 1 1
01 0 0 0
01 0 0 0
0 1 0 0 0

answer
Answers: 2

Similar questions

Do you know the correct answer?
Write a program that will read from a file specified on the command line and determine from the grap...

Questions in other subjects:

Konu
Mathematics, 24.10.2019 02:20
Konu
Mathematics, 24.10.2019 02:20
Konu
Mathematics, 24.10.2019 02:20