Question: How to write a program in java that can convert a linked list (which its content taken from text file) to adjacency list depend on

How to write a program in java that can convert a linked list (which its content taken from text file) to adjacency list depend on the ID of the course and prerequisite then making a directed graph.
 How to write a program in java that can convert a
This how the text file looks like which contains
ID,course name,prerequisite,hours
I stored each course content into a linked list but what can I do now ? How to represent it into a direct graph?

0817208, Intro. to statistics and Probability theory,0817111,3 0911210,0bject oriented Prog ,0911120,3 0911211, Data structure,0911120,3 0912212, Technical Reports,0912111,3 0913213,Digital Hardware,0913121,3 0914214, Com. & Network Fund,0911110,3 0817301,Discrete Math, 0817208,3 0911220,0bject oriented Prog (2),0911210,3

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!