Question: Im trying to output a . tab file into a graph but its only doing the first line of the tab file heres my code

Im trying to output a .tab file into a graph but its only doing the first line of the tab file heres my code i have an array holding all the u and v values so i want to pull the second value from the arrays for the second edge...etc.
While (scan. hasNextLine()){
Digraph graph = new Digraph();
graph.addEdge((U,V);
I
//Show Outputs
graph.showGraph();
System.out.println(x: "Course Order");
graph.topSort();
}
 Im trying to output a .tab file into a graph but

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!