Representation
Know
An adjacency list uses space proportional to vertices plus edges; an adjacency matrix uses the square of the vertices regardless of how few edges exist.
Apply
Choose the list for sparse graphs and the matrix when edge lookup between two named vertices must be constant.
Watch out
Quoting a traversal cost without saying which representation it assumes. The answer differs.
Study move
State the space and the traversal cost for one graph under both representations.
