jcreed blog > A Graph Polynomial, Sort of

A Graph Polynomial, Sort of

Sridhar posted on twitter about how he preferred understanding the underlying idea of the chromatic polynomial of a graph as a "all at once" phenomenon, rather than focusing on the (nonetheless true, and useful for concrete computations) incremental deletion-contraction property.

On top of me generally agreeing with the sentiment, it got me wondering whether one particular generalization of the definition was useful for anything.

Suppose you have a ring RR, a set MM with an associative commutative operation \cdot (written as juxtaposition) and some function v:MRv : M \to R, not necessarily a homomorphism.

Let GG be a graph equipped with functions m:VMm : V \to M and r:ERr : E \to R. That is, vertices are decorated with MM-elements (in the diagram example {a,b,c,}\{a, b, c, \ldots\}) and edges are decorated ith RR-elements (in the example {x,y,}\{x, y, \ldots\}).

The decoration on each edge is the coefficient to be used when the edge is contracted.

Given a subset SES \subseteq E of the edges of the graph, we can define C(S)C(S) to be the set of sets of vertices that are the connected components when we consider only the edges in SS. We define the "value" of GG to be SV(eSr(e))(KC(S)v(xKm(x))) \sum_{S \subseteq V} \left(\prod_{e \in S} r(e) \right) \left(\prod_{K \in C(S)} v\left(\prod_{x \in K} m(x)\right)\right)

The associativity and commutativity of the operation in MM is crucial for the rightmost Π\Pi to be meaningful

To get the chromatic polynomial of a graph, take RR to be the polynomial ring Z[λ]\Z[\lambda], let MM be a singleton {}\{\star\}, and let v()=λv(\star) = \lambda. Decorate every vertex of GG with \star, and every edge with 1-1; the above formula becomes the familiar SV(1)SλC(S) \sum_{S \subseteq V} (-1)^{|S|} \lambda^{|C(S)|}