When to use adjacency list vs. adjacency matrix?

I’m currently doing the silver DFS module, can someone explain when to use an adjacency list vs. an adjacency matrix to represent a graph. Thanks in advance!

The CSAcademy resource in the Bronze module covers this.

1 Like