Question: write code in java. Topic Graph (object oriented programming). the output should be same as the sample output below in the question. Problem Description Gohan,
write code in java. Topic Graph (object oriented programming). the output should be same as the sample output below in the question.

Problem Description Gohan, who is a network administrator, supervises a network of computers. He is maintaining a log for the connections between the computers in the network. Two computers a and b are connected if they are directly connected or if there is a path from a to b. Occasionally, Bob has to determine quickly, whether two given computers are connected, according to the log information. Write a program to assist Gohan. Input The first line of input are 2 integers v (15 vs 50) and e (1 ses 50) representing the number of computers (vertices) and the number of connection between two computers (edges) respectively, follows by e lines where in each line there are 2 integers that represent the connecting nodes. In the following line there is an integer T (1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
