Page 1 of 1

1 3 O 5 2 8 4

Posted: Tue Jul 12, 2022 8:10 am
by answerhappygod
1 3 O 5 2 8 4 1
1 3 O 5 2 8 4 1 (73.51 KiB) Viewed 24 times
c++
Suppose the above graph class uses the following adjacency listimplementation:
where the constructor sets the sizeof adj_list to node_count. Write the implementationof the recursive DFS function using this implementation(cout the node's number when it is first explored; you don'thave to worry about distance, parents, starting or endingtimes):
1 3 O 5 2 8 4