The Kirchhoff polynomial of a multigraph , in the complement-of-tree convention, is
where
ranges over the spanning trees of
, and
is the variable for graph
edge
. This is the graph polynomial also called the first
Symanzik polynomial. Its zero set defines the graph
hypersurface of
.
For a graph with two distinct terminals, define by summing the analogous products over spanning
forests with two components, one containing each terminal. For graphs
and
with disjoint edge sets, series composition gives
and
. Parallel
composition gives
and
. These rules hold for the undirected two-terminal
construction in series-parallel graphs (Badade
2026).