Question: (1) Choose an arbitrary node x of the graph G as the starting point (2) Determine the set A of all the nodes which can
(1) Choose an arbitrary node x of the graph G as the starting point (2) Determine the set A of all the nodes which can be reached from x (3) If A is equal to the set of nodes of G, the graph is connected; otherwise it is disconnected Adapt the general algorithm for the input of adjacency matrix Assignment: Implement your program in Java and verify its correctness using the following test input. Submit: Your java code, compilation without error status, output for test data Verification: Please be prepared to demo your code in the Lab class on 10/18/18 Test input Graph G given by the following adjacency matrix ertex abels b a 1 0 1 1 1 00 0 0 b 0 0 0 01 1 0 0 0 c 10 0 1 0 1 00 0 d 10 1 0 0 00 0 0 e 11 0 00 1 0 0 0 g 000000 010 0 00000101
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
