| Algebraic Geometry | Graph Theory |
| Commutative ring $R$ | Graph $G$ |
| Ring hom $R \to S$ | Graph hom $G \to H$ |
| Ideal $\mathfrak{a} \subseteq R$ | Set of potential edges $S$ on vertex set $V(G)$ |
| Quotient $R/\mathfrak{a}$ | Contraction $G/S$ |
| Localization $R[f^{-1}]$ | Edge addition $G \cup \{e\}$ |
| Prime ideal $\mathfrak{p} \subseteq R$ | Consistent partition $K$ of $G$ |
| $\mathfrak{p}_1 \supseteq \mathfrak{p}_2$ (specialization) | $K_1$ is coarser than $K_2$ |
| Generic point $(0)$ | Discrete partition (every vertex in its own block) |
These partitions can be seen as colorings, except quotiented out by permutations of the coloring set.
This means that the natural analog of a maximal ideal is a graph minimal in this specialization order, and is a way
of identifying a minimal coloring of a graph. Since we can build up a chain of progressively coarser and coarser partitions
on the way to a maximal ideal, the "Krull dimension" of a graph has the same information as its chromatic number! That's kind of neat.