Mental Model
Use a square grid to show which nodes connect directly to which others by marking cells with 1 or 0.
Analogy: Imagine a city map with intersections as nodes and roads as connections; the matrix is like a table where each row and column shows if a road exists between two intersections.
0 1 2 0 0 1 0 1 1 0 1 2 0 0 0 Rows and columns represent nodes; 1 means connected, 0 means no connection.
