a. Write the adjacency matrix and the adjacency lists for both graphs.
b. Are there any cycles in each graph? If so, write down the corresponding paths.