Mental Model
An adjacency matrix is a grid that shows which nodes in a graph connect to which others using rows and columns.
Analogy: Think of a classroom seating chart where each student is listed in rows and columns, and a mark shows if two students are friends sitting next to each other.
0 1 2 0 [0 1 0] 1 [1 0 1] 2 [0 1 0]
