This question has two parts. Make sure to answer both
A) Draw both the adjacency matrix and adjacency list representations of this graph. Be sure to specify which is which. For the adjacency matrix, if there is an edge between two nodes, you can represent with the value of True (T) otherwise
false(F).
B) What is the order of visited nodes using DFS algorithm (starting from node O). If
there is ever a decision between multiple neighbor nodes, assume we always
choose the num closest to the O. For example, if you need to choose between
nodes 1, 2 and 3 as the neighbors of nodes 0, you select node 1.