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 R, a set M with an associative commutative
operation ⋅ (written as juxtaposition) and some function
v:M→R, not necessarily a homomorphism.
Let G be a graph equipped with functions m:V→M
and r:E→R. That is, vertices are decorated with M-elements
(in the diagram example {a,b,c,…})
and edges are decorated ith R-elements
(in the example {x,y,…}).
The decoration on each edge is the coefficient to be
used when the edge is contracted.
Given a subset S⊆E of the edges of the graph,
we can define C(S) to be the set of sets of vertices
that are the connected components when we consider only the edges in S.
We define the "value" of G to be
S⊆V∑(e∈S∏r(e))⎝⎛K∈C(S)∏v(x∈K∏m(x))⎠⎞
The associativity and commutativity of the operation in M
is crucial for the rightmost Π to be meaningful
To get the chromatic polynomial of a graph, take R to be the
polynomial ring Z[λ], let M be a singleton {⋆},
and let v(⋆)=λ. Decorate every vertex of G with
⋆, and every edge with −1; the above formula becomes the
familiar
S⊆V∑(−1)∣S∣λ∣C(S)∣