Adjacency List Input
Create a file containing the adjacency list data given at the end of this chapter, and then modify the program in Code Listing 20-6 so that it reads the file and uses the data found in the file to build the adjacency list structure. Use an array of strings to keep track of the association between node names and node numbers that is given at the beginning of the file, and then use an array or an ArrayList of lists of numbers for the adjacency list structure. Print the adjacency list twice: once using numbers to name the nodes (as in Table 20-X) and again using the string names of the nodes, as in Table 20-x.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.