Given the adjacency list representation of a graph, write a function generateAdjMatrix that generates and returns the adjacency matrix representation of the graph based on the adjacency list. write another function printMatrix that takes the adjacency matrix input and print it. For example: For the following graph Input: Adjacency List: 01-4-3 4:3–1 Output: The adjacency Matrix: 010 1 1 10000 01010 Graph Class
OR
OR