An adjacency matrix represents a graph as a square table. Each row and column represents a node, and each cell indicates whether the corresponding pair of nodes is connected. section 9.0
Four-node graph
For nodes A, B, C, and D, a cell containing 1 means the corresponding relationship exists; a cell containing 0 means it does not. The cell at column C and row D is 1 when C and D are connected. section 9.0
The representation has important consequences for graph machine learning:
- A graph with one million nodes gives every node a vector with one million elements. section 9.0
- Using the matrix as model input creates many features, makes models depend on graph size, and can increase overfitting. section 9.0
View the four-node adjacency matrix and connect its cell values to graph relationships. section 9.0







