Question: c or c++ please! Write a program that will do the following: 1. Input a graph in the form of an adjacency matrix. The first

c or c++ please!
Write a program that will do the following: 1. Input a graph in the form of an adjacency matrix. The first entry can be the number of vertices in the graph. Example: 8 01100010 1 0110000 11011011 01101100 00110101 00011001 10100001 00101110 1. Do a DFS or BFS of the graph 2. Print out the result of the DFS or BFS a spanning tree in the form of an adjacency matrix
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
