Deph First Search
create a function that returns the DFS of the graph
depth_first_graph:
the Time Complexity is = O(N+m)
the Space Complexity is = O(N)
Deph First Search
create a function that returns the DFS of the graph
depth_first_graph:
the Time Complexity is = O(N+m)
the Space Complexity is = O(N)