Graph | Question 1

Last Updated :
Discuss
Comments

Which of the following ways is preferred to represent a graph for its efficient BFS and DFS traversals for a general graph which may not be very well connected?

Adjacency Matrix

Adjacency List

Both are same efficiency wise

None of the two are efficient

Tags:
Share your thoughts in the comments