Graphs

Question 1 of 6

An adjacency list uses O(V + E) space. An adjacency matrix uses O(V^2). When is the matrix a better choice?

← Back to categories