Advertisement
Guest User

Untitled

a guest
Aug 27th, 2022
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. DFS gives output 4
  2. Actual output is 3
  3.  
  4. 9 is the number of nodes while 16 is the number of edges
  5. The following 9 lines represent the adjacency list of the 9 nodes (Order is important!)
  6.  
  7. 9 16
  8. 6 2 4
  9. 1 5
  10. 5 7
  11. 5 8 1
  12. 4 7 9 2 3
  13. 1 7
  14. 5 6 3
  15. 4
  16. 9 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement