Manuscript Offprint
arXiv:2611.05366Transfer of Weisfeiler-Leman equivalence under graph operations
Abstract
The Weisfeiler–Leman algorithms WL(k) for form a hierarchy of increasingly powerful tests for graph isomorphism. We study how the equivalence relations they induce on graphs transfer through a graph operation : for a given , what level of WL-equivalence between graphs and guarantees WL(k)-equivalence of graphs and ? We call the least such level the transfer parameter and determine it exactly for the line graph operation : for , while . We also extend these results to the -line graphs, which generalize the line graph from edges to -cliques by connecting two cliques when their intersection size lies in a prescribed set . For these operations we prove that for every and, for certain choices of , that for , and we bound the transfer parameter in the remaining range. Our upper bounds on transfer parameters follow from a treewidth analysis of diagrammatic expansions of homomorphism counts into as linear combinations of homomorphism counts into . The matching lower bounds combine explicit constructions of witness graphs with the homomorphism-distinguishing closedness of graphs of bounded treewidth.
*Email: kunisky@jhu.edu.
†Email: hsawczul@jhu.edu.
Contents
1 Introduction 1
1.1 Main results ..... 2
1.2 Proof techniques: Diagrammatic expansion of graph operations ..... 3
1.3 Related work ..... 4
1.4 Notation ..... 5
2 Preliminaries 5
2.1 Line graphs and Krausz cliques ..... 5
2.2 Treewidth ..... 6
2.3 Homomorphism indistinguishability ..... 6
2.4 The algebra of bi-labeled graphs ..... 6
3 Gadget expansions and decompositions 8
4 Line graphs: Proof of Theorem 1.3 11
4.1 Line graph gadget family ..... 11
4.2 Upper bound for ..... 13
4.3 Lower bound for ..... 15
4.4 Special case k = 1 ..... 18
5 (r, S)-line graphs: Proof of Theorem 1.5 19
5.1 The (r, S) gadget family ..... 19
5.2 The case ..... 20
5.3 The case k = 1 ..... 25
5.4 Lower bound for ..... 25
Definition 1.1 (Line graph). The line graph of a graph has the edge set as its vertex set, with pairs of edges adjacent if they share an endpoint. Formally,
Many graph properties transform conveniently under the line graph operation; for instance, a matching in is an independent set in , and an edge-coloring in is a vertex-coloring in . Classically, these correspondences provide reductions among combinatorial problems on graphs: by running a vertex-coloring algorithm on , we can find edge-colorings of , and likewise for other problems [Wes01].
Graph operations are used, for example, in graph learning, where the output of graph operations such as the line graph can be used as “features.” To learn a function on graphs , one can instead learn a function of or of and jointly. In the simplest case, the power of an algorithm can be “boosted” by running it on a graph generated by a graph operation. For example, message-passing neural networks are limited by the expressive power of the Weisfeiler–Leman algorithm discussed below [MRF+19, XHLJ19], but running an analogous network on rather than can distinguish inputs the original cannot, as in the line-graph neural network of Chen, Li, and Bruna [CLB19] and the edge-reified message passing of Liu and Song [LS22].
We consider the interaction of the line graph with a common technique for refuting graph isomorphism, the Weisfeiler–Leman (WL) hierarchy of algorithms. Given two input graphs , these algorithms can be viewed as outputting either “not isomorphic” or “no result”, where the former output means the algorithm has found a certificate that , while the latter output means it could be that either or . These algorithms come in a hierarchy of increasing power and computational complexity, indexed by a parameter , the th of which we denote ; in particular if outputs “not isomorphic,” then so does for each .
The WL algorithms can be instantiated via iterative coloring [CFI92, GN21], convex optimization [GRS25, RS23], and graph neural networks [MRF+19, XHLJ19]. They are also characterized more abstractly by homomorphism counts from bounded-treewidth graphs [Dvo10, DGR18], bounded-variable counting logic [CFI92], and pebbling comonads [ADW17, DJR21]. We give the homomorphism count interpretation, which will be most suitable for our purposes.
Definition 1.2 (Weisfeiler–Leman equivalence). For and graphs , we say and are -equivalent and write if
for every graph of treewidth at most (Definition 2.4). Here denotes the number of graph homomorphisms of into , i.e. functions mapping edges to edges.
It follows that the relations are equivalence relations on graphs, and these equivalence relations become finer as increases, so that whenever implies .
We investigate how WL equivalence interacts with graph operations. Namely, for a graph operation and a given , we ask what level of WL equivalence of and is needed to guarantee WL equivalence of and . That is, what is the minimum value of such that
We refer to this question as the transfer of WL equivalence through the graph operation . Below we will answer this question exactly for , and give partial results for a family of generalizations.
The practical significance of the transfer parameter is algorithmic. While no known algorithm solves graph isomorphism in time polynomial in [GN21], for any fixed the WL algorithm runs in time, and in an average-case sense WL(1) already distinguishes almost all pairs of graphs [BES80]. Because of this, WL(1) is a workhorse method for practical graph isomorphism, powering isomorphism solvers [MP14] and appearing as a subroutine in Babai's state-of-the-art quasipolynomial-time graph isomorphism algorithm [Bab16]. However, there are simple examples of non-isomorphic graphs that WL(1) fails to distinguish, for example any pair of -regular graphs on the same number of vertices. These limitations can be addressed by passing to more expensive WL algorithms, but one may apply the above graph learning idea and instead run WL on the transformed graphs and . The transfer parameter bounds the effectiveness of this approach in the worst case. More abstractly, WL equivalence can be viewed as a quantitative refinement of graph isomorphism. For instance, we may define the “WL similarity” between graphs as . The transfer parameter then bounds how much this similarity can decrease under a given graph operation.
1.1 Main results
Our first main result identifies the transfer parameter for the line graph.
Theorem 1.3 (Transfer of WL-equivalence for the line graph). Let denote the minimum value of such that
for all . Then, we have
For connected graphs the case also follows from covering theory (Remark 4.19); we include a proof using our methods in Section 4.4. For , the upper bound follows from finite-variable counting logic (Section 1.3), but the matching lower bound is new (Section 4.3). We partially extend Theorem 1.3 to a variant of the line graph based on overlapping cliques, as follows.
Definition 1.4 ((r, S)-line graph). Fix an integer and a set . For a graph , the -line graph has the r-cliques of as its vertices, with two cliques adjacent whenever .
The vertices of are the -simplices of the clique complex of , and specifies those intersection sizes that induce adjacency. Table 1.1 lists three familiar special cases. On , the adjacency matrix of is , where is the Johnson scheme matrix joining -subsets with intersection size [BI84, BCN89]. Equivalently, this is the generalized Kneser graph with prescribed intersection set [Hav18].
| (r, S) | Operation | Output on |
|---|---|---|
| (2, {1}) | line graph | (Johnson graph) |
| (r, {r-1}) | r-line graph (triangle graph for r = 3) [LSBT16, LSBT15] | [CL87] |
| (r, {1, ..., r-1}) | line graph of r-uniform hypergraph of r-cliques [Ber73, NRSS82] | complement of the Kneser graph, |
Table 1.1: Special cases of the -line graph and their outputs on the complete graph . Here the generalized Johnson graph joins -subsets of whose intersection has size .
Theorem 1.5 (Transfer of WL-equivalence for the -line graph). Fix and . Let denote the minimum value of such that
for all . The following then hold:
-
, and for every .
-
If and , then .
-
If , , and the sign condition () holds, then for .
Note that letting recovers Theorem 1.3. The sign condition () concerns the integers
which are the coefficients of the gadget expansion of (Lemma 5.2); it requires that for and that . It holds, for example, when and when (Lemma 5.20).
We leave the problem of determining for open; already for and , our bounds give only . Another area for future work is the case for , which includes the triangle graph operation and does not satisfy the hypothesis of items 2 and 3.
1.2 Proof techniques: Diagrammatic expansion of graph operations
We first consider the task of proving upper bounds on the transfer parameter of a graph operation . Unraveling the definitions, this requires us to show that whenever for all of treewidth at most some , for all of treewidth at most some . Our analysis proceeds by expanding the latter quantities in terms of the former, as
for some coefficients , only finitely many of which are non-zero for a given . Abstractly, this is possible because the homomorphism counts span all polynomials of the adjacency matrix of a graph that are invariant under graph isomorphism (i.e., under the two-sided action of the symmetric group on matrices) [Thi00, CDM17]. Since is such a polynomial of the adjacency matrix of for those we consider, it must admit an expansion of the above form for a given dimension . Further, for those we consider, we show that the coefficients are independent of .
In order to prove results of the above form, it suffices to show that if the treewidth of is at most , then all for which must have treewidth at most . Thus, our question reduces to one of the structure of the above expansion, which we address using the tools of gadget expansion and gadget decomposition introduced in Section 3. There we also show that it is possible to reason about such expansions in a convenient diagrammatic fashion, deducing which appear in such an expansion by manipulating in appropriate ways. We give such upper bound arguments in Sections 4.2 and 4.4 for line graphs and Sections 5.2 and 5.3 for -line graphs.
For lower bounds on the transfer parameter, we must show a converse result, exhibiting pairs of graphs that agree on homomorphism counts of graphs of treewidth at most but for which disagree on the homomorphism count of some graph of treewidth . In the parameter ranges where our bounds are sharp, we first show that the expansion (1.2) indeed contains some graph of the largest possible treewidth (below our upper bounds) with non-zero coefficients. We then combine this observation with the theory of homomorphism-distinguishing closedness of graphs of bounded treewidth [Neu24, Sep24b]. The simplest form of this property says that every graph of treewidth greater than distinguishes some pair that agree on homomorphism counts from all graphs of treewidth at most . A more general form for linear combinations of homomorphism counts (Theorem 2.7) guarantees the same conclusion for any finite linear combination containing such a graph with non-zero coefficient. Applying this to (1.2) for a suitable of treewidth at most gives the required pair . We provide these arguments in Section 4.3 for line graphs and Sections 5.2 to 5.4 for -line graphs.
The idea of taking a diagrammatic decomposition of the effect of graph operations on adjacency matrices is closely related to the constructions of graph matrices [AMP16, BHK 19] and tensor networks [BB17, MW19] appearing in other applications in combinatorics, linear algebra, and theoretical computer science. We believe that this perspective on graph operations may be of independent interest and could shed light on other questions about their properties.
1.3 Related work
Homomorphism counts from all source graphs characterize graph isomorphism [Lov67], and restricting the source graphs to treewidth at most characterizes WL-equivalence [Dvo10, DGR18]. Related characterizations use bounded pathwidth and treedepth [GRS25], or planar graphs [MR20], and are collected in Seppelt's overview [Sep24a]. Our gadget expansions use the algebra of bi-labeled graphs and homomorphism matrices [MR20, GRS25], recalled in Section 2.4, to express how graph operations transform these counts. Recall that quantum graphs are formal finite linear combinations of graphs on which acts linearly [Lov12, Chapter 6]. In this language, (1.2) states that for the quantum graph .
Our upper bounds also follow from finite-variable counting logic. WL-equivalence coincides with equivalence in the counting logic with variables [CFI92, Dvo10]. Otto's lemma on interpretations [Ott97, Lemma 1.50] shows that -definable properties of an interpretation in the -th power are -definable properties of the input. Because the -line graph is an interpretation in the -th power, this yields , and in particular . We provide a proof via counting homomorphisms and gadget expansions.
Our lower bounds combine Neuen's homomorphism-distinguishing closedness theorem for the class of graphs of bounded treewidth [Neu24] with Seppelt’s lemma for linear combinations [Sep24b]. Together, these results turn a non-zero coefficient of a graph of sufficiently large treewidth into a pair witnessing failure of WL-equivalence after a graph operation. This applies the theory initiated by Roberson [Rob22], who conjectured closedness for every graph class closed under minors and disjoint unions. Related closedness results include planar graphs [Rob22], graphs of bounded treedepth [FSS24], and outerplanar and cactus graphs [NS26].
Prior work on graph learning has used representations based on edge adjacencies, including line graph neural networks [CLB19] and dual message passing [LS22]. In the same spirit as our motivation from “boosting” methods for refuting graph isomorphism, Yang and Huang [YH24] study line graph transformations of strongly regular graphs [GN21] and Cai-Fürer-Immerman graphs [CFI92], two standard sources of graph pairs that fixed levels of WL fail to distinguish. In recent work, Yang [Yan26] mainly studies the converse question of how WL-equivalence of line graphs transfers to WL-equivalence of the original graphs. His Proposition 2 is the case of Theorem 1.3.
1.4 Notation
All graphs are finite, simple, and undirected unless otherwise specified. For ease of notation we denote the undirected edge by or interchangeably. We freely identify a graph with its adjacency matrix and denote both by .
2 Preliminaries
2.1 Line graphs and Krausz cliques
Recall the line graph operation of Definition 1.1. For context, we mention the following classical theorem showing it is essentially invertible.
Theorem 2.1 (Whitney [Whi32]). If and are connected graphs with , then , unless .
Our lower bound constructions (Lemmas 4.10 and 5.9) use the following Krausz cliques; for context we also recall Krausz’s characterization of line graphs.
Definition 2.2 (Krausz clique). For write
for the Krausz clique of . Any two edges through are adjacent in , so is indeed a clique in . Moreover:
-
Each vertex of lies in exactly two Krausz cliques, namely and .
-
Each edge of lies in exactly one Krausz clique, namely where is the shared endpoint of and in .
Proposition 2.3 (Krausz partition [Kra43]). A graph is a line graph if and only if it admits an edge partition into cliques with every vertex in at most two of them.
2.2 Treewidth
Recall that treewidth appears in the definition of WL-equivalence (Definition 1.2).
Definition 2.4 (Tree decomposition). A tree decomposition of a graph consists of a tree and a collection of subsets of , called bags, such that
-
Every vertex and every edge of G is contained in some bag.
-
For every vertex v of G the set of bags containing v induces a connected subtree of T.
The width of a tree decomposition is . The treewidth of , denoted , is the minimum such width. Note exactly when is a forest. Write for the set of isomorphism classes of simple graphs with treewidth at most .
2.3 Homomorphism indistinguishability
For , we write for the number of homomorphisms , i.e., maps sending edges of to edges of .
Definition 2.5. Two graphs are homomorphism-indistinguishable over a class of graphs if for all .
A classical result of Lovász [Lov67] states that isomorphism is equivalent to homomorphism-indistinguishability over the class of all graphs. Similarly, WL-equivalence is characterized by homomorphism-indistinguishability over [Dvo10, DGR18], as in Definition 1.2.
Definition 2.6. A class of graphs is homomorphism-distinguishing closed if for every there exist homomorphism-indistinguishable over with .
The following theorem is critical for the lower bound of Theorem 1.3; in Section 4.3 we use its contrapositive to show the existence of with .
Theorem 2.7 (Theorem 2 of [Neu24] and Lemma 6 of [Sep24b], arXiv v4). For every the class is homomorphism-distinguishing closed. Consequently, if is a finite set of pairwise non-isomorphic graphs and satisfies
then .
2.4 The algebra of bi-labeled graphs
Unless otherwise specified, all functions below are taken to be graph homomorphisms. The bi-labeled graph algebra and its tensor presentation have been formalized by Mačinska and Roberson [MR20] and used by Grohe, Rattan, and Seppelt [GRS25].
Definition 2.8 (Bi-labeled graph). A bi-labeled graph is a triple where , and are tuples of vertices in . We refer to as the left interface, and its vertices as the left vertices of . Similarly, is the right interface and its vertices are the right vertices of . is the underlying graph of . We use to denote the set of isomorphism classes of bi-labeled graphs with left and right vertices. Then is the set of all bi-labeled graphs.

Figure 2.1: We illustrate some important bi-labeled graphs, along with the relations among vertices that they imply.
When drawing a bi-labeled graph we put exactly vertices on the left and vertices on the right. If a vertex occurs multiple times in the concatenated interface we visualize these occurrences as distinct vertices joined by a relation edge indicating they are the same vertex. We use dashed lines for relation edges and solid lines for ordinary graph edges.
Definition 2.9 (Homomorphism of bi-labeled graphs). Given , a homomorphism of bi-labeled graphs is a graph homomorphism sending the left and right vertices of to the left and right vertices of respectively.
Definition 2.10 (Homomorphism matrix). Given a bi-labeled graph and a graph , the homomorphism matrix is the matrix defined entrywise by
Concretely, letting we have
Note this is similar to the definition of graph matrices in the theoretical computer science literature [AMP16, BHK 19]; here the input is a binary matrix and the sum includes non-injective maps. As with the graph matrix operation, the map uses the bi-labeled “template” graph to construct a new, possibly larger, matrix whose entries are polynomials in the entries of . Conveniently, natural operations on the bi-labeled graphs correspond to natural linear-algebraic operations on the homomorphism matrices .
Definition 2.11 (Bi-labeled graph operations). Consider the bi-labeled graphs and . We record the primary operations of the bi-labeled graph algebra below and their corresponding operations on homomorphism matrices (see Fig. 2.2). Throughout, vertex identifications retain loops and collapse parallel edges.
- Series Composition: is defined when and has underlying graph formed by taking the disjoint union and identifying . It has left interface and right interface . We have
where juxtaposition on the right denotes the ordinary product of matrices.

Figure 2.2: We illustrate the effect of the three binary operations described in Definition 2.11 on pairs of bi-labeled graphs.
- Tensor Product: has underlying graph . It has left interface and right interface where juxtaposition denotes concatenation. We have
- Transposition: is formed by swapping the left and right interfaces of . We have
- Parallel Composition: is defined when and and has underlying graph formed by taking the disjoint union and identifying and . It has left interface and right interface . We have
where on the right denotes the entrywise or Hadamard product of matrices.
Theorem 2.12 (Theorem 8.4 of [MR20]). . That is, all bi-labeled graphs can be generated from the four bi-labeled graphs given in Fig. 2.1 by combining them with series composition, tensor product, and transposition.
We do not use this result, but it shows that the gadgets below are built from standard primitives.
3 Gadget expansions and decompositions
We now present the tools, based on the algebra of bi-labeled graphs, used for realizing graph operations via diagrammatic expansions.
Definition 3.1 (Gadget, gadget family, interface size). A gadget family is a finite set of bi-labeled graphs , each with left and right interfaces of size , together with a coefficient function . We refer to a bi-labeled graph as a gadget and as the interface size of the family .
Definition 3.2 (Transpose-closed). We say a gadget family is transpose-closed when
Given a graph , the following definition describes how we can derive a new graph by “plugging in” a gadget along each edge of .
Definition 3.3 (Gadget expansion). Let be a gadget family of interface size , be a directed graph, and be a gadget assignment. The gadget expansion is a graph, possibly with loops, constructed by inserting a copy of along each edge . Formally, for each vertex create an interface . Then for each directed edge create a disjoint copy of ; identify the left and right interfaces of with and respectively; and collapse any resulting parallel edges, retaining loops. The result is
where is the equivalence relation generated by the interface identifications.
Lemma 3.4 (Orientation independence). Let be transpose-closed, be an undirected graph, and be two orientations of . Given an assignment under , define under by on edges where disagree and elsewhere. Then is a bijection between assignments under and , and letting denote the orientation of by ,
Thus changing the orientation of merely reindexes the gadget assignments, preserving each expanded graph and its coefficient. In particular, the weighted sum over all gadget assignments is independent of the chosen orientation. Henceforth, gadget families are assumed to be transpose-closed, and we choose an arbitrary orientation whenever applying the construction to an undirected graph.
Proof. Every pair of orientations is connected by a sequence of single-edge reversals, so it suffices to consider the case where differ on a single edge. Let with and , and write , so . Under , the expansion identifies the left interface of with and the right interface with . Under the edge points , so identifies the left interface of with and its right interface with since has left interface and right interface . In both cases the identifications are the same, and the underlying graph is unchanged, so . Given an assignment under , the same construction yields the inverse map, hence is a bijection. Finally, transpose closure gives , so the products coincide.
We now describe how to compute homomorphism counts of graphs formed as gadget expansions in terms of the underlying gadgets.
Definition 3.5 (Contraction along ). Let be a directed graph and fix integers . Given an edge-indexed tuple of matrices, the contraction of along is
The map is multilinear in . When and for the adjacency matrix of a graph, we recover . For an undirected graph and a symmetric matrix , we define for any orientation of ; by symmetry of this does not depend on the orientation.
Lemma 3.6 (Gadget hom count). Let be a directed graph, a simple undirected graph on , a gadget family of interface size , and an assignment. Then
Proof. The second equality is the definition of . To prove the first equality, first identify each map with the map given by . Fix an edge and write . By the definition of the homomorphism matrix,
where is the set of maps with and . Then
Distinct underlying graphs share only interface vertices, whose values are fixed by . Thus the free variables of the terms of the inner sum are disjoint, and distributivity yields
A choice of together with a family assigns a vertex of to every element of
Now let denote the equivalence relation generated by the interface identifications of . By Definition 3.3,
The condition means is consistent with the interface identifications of , i.e. constant on equivalence classes of . The pairs are thus in bijection with maps . A gadget edge and its image in receive the same endpoints under , and every edge of is such an image. Since is simple every factor lies in , so both sides of
are indicators that maps every gadget edge into and therefore agree. Summing over all gives .
Finally, we arrive at the main point of these tools. The definition below makes precise the sense in which a gadget family can realize a graph operation in terms of homomorphism counts. This realization allows us to express homomorphism counts from into a derived graph in terms of homomorphism counts from gadget expansions into the original graph .
Definition 3.7 (Representation of graph operation, duplication factor). A family represents a graph operation with duplication factor d if, for every graph H and every graph G without isolated vertices,
Here is symmetric because is transpose-closed.
Lemma 3.8 (Gadget hom decomposition). If has interface size and represents with duplication factor , then for every graph without isolated vertices and on ,
Letting denote the set of isomorphism classes of loopless expansions , we have
with coefficients defined for by
Proof. By Definition 3.7,
where the argument of is a constant tuple. Expanding by the multilinearity of in the tuple (Definition 3.5),
the last equality by Lemma 3.6. Dividing by gives (3.3). Expansions containing loops contribute zero since is simple. Omitting these terms and regrouping the rest by isomorphism type gives (3.4), with as in (3.5).
4 Line graphs: Proof of Theorem 1.3
4.1 Line graph gadget family
We first describe how to apply the gadget family techniques of Section 3 to the line graph operation.

Figure 4.1: The line graph gadget family of Definition 4.2.
Definition 4.1 (Ordered line graph). Given a graph , the ordered line graph is an undirected graph with vertex set and adjacency when and . Equivalently,
Definition 4.2 (Line graph gadget family). Denote the line graph gadget family (of interface size 2) by , and let for . Then is shown in Fig. 4.1 and its coefficients are given by
\begin{array}{c|ccccc}{{{\boldsymbol{F}}}}&{{{\boldsymbol{F}_{11}}}}&{{{\boldsymbol{F}_{12}}}}&{{{\boldsymbol{F}_{21}}}}&{{{\boldsymbol{F}_{22}}}}&{{{\boldsymbol{F}_{\parallel}}}}&{{{\boldsymbol{F}_{\times}}}} \\{{{\hline\alpha}}}&{{{+1}}}&{{{+1}}}&{{{+1}}}&{{{+1}}}&{{{-2}}}&{{{-2}}} \\\end{array}where for all ; the four single gadgets identify ; and the two double gadgets and identify , and , respectively.
Proposition 4.3. For every graph H,
Proof. Let and , for , have rows and columns indexed by and entries
\begin{align*}(B_{H})_{(a_{1},a_{2}),(b_{1},b_{2})}&:=H_{a_{1}a_{2}}H_{b_{1}b_{2}},\ $ J_{s})_{(a_{1},a_{2}),(b_{1},b_{2})}&:=\mathbb{1}\big[|\{a_{1},a_{2}\}\cap\{b_{1},b_{2}\}|=s\big].\end{align*}Then , where denotes the entrywise product. For , define on the same index set by . Since is loopless, every entry where is nonzero has and . On these entries, counts the common vertices, and an intersection of size two corresponds to exactly one of the two matchings of the endpoints. Thus
It follows that
Now for the bi-labeled graph consisting of the two disjoint edges and . Entrywise multiplication by is parallel composition with a bi-labeled graph that identifies the interface vertices and . The six terms in the expansion above therefore correspond to the gadgets in as follows:
| term | identification | gadget | |
|---|---|---|---|
| +1 | |||
| +1 | |||
| +1 | |||
| +1 | |||
| -2 | |||
| -2 |
Summing these six terms proves the identity.
Lemma 4.4 (Duplication factor). For every graph H and every graph G without isolated vertices,
so represents with duplication factor .
Proof. Each unordered vertex in has two corresponding ordered vertices in , and adjacency in is the unordered condition . Thus is obtained from by replacing each unordered vertex with a non-adjacent pair of ordered vertices with equal neighborhoods, and adding isolated vertices for the remaining ordered pairs. Since has no isolated vertices, its homomorphisms avoid these extra vertices. Therefore a homomorphism is a homomorphism together with an independent choice of target ordering for each vertex of , and the result follows.
Lemma 4.5 (Edge budget). For every graph and every assignment ,
Proof. Each gadget has edge set , with both edges lying in an interface. Thus every edge of is the image of an interface edge, which has an associated vertex in . Since all interface edges with the same associated vertex are identified, has at most one edge per vertex of .
4.2 Upper bound for
For arbitrary gadget family the treewidth of is unbounded (a gadget may be an arbitrarily large clique, for example). When the number of vertices of is bounded, however, we can bound . The bound is essentially that of the blow-up , obtained by

Figure 4.2: Tree decompositions of and .
replacing each vertex of by a clique and joining adjacent cliques completely. It is easy to see, by replacing each vertex in the bags of a tree decomposition of by its copies, that
See [DHP24, Prop. 2.4] for the substitution step in the algebra of sourced graphs with distinct sourced vertices. Our gadgets have repeated interface vertices, so we provide a direct proof.
Lemma 4.6 (Treewidth growth). Let be a gadget family with interface size and gadgets on at most vertices. Then for every graph and every assignment ,
Proof. Let be a tree decomposition of of width , and write for the quotient map defining . Replace each bag by . See Fig. 4.2 for an illustration with and the gadget with two disjoint interfaces of size 2. For each edge , let be its gadget copy and attach a leaf bag to a node with . These bags cover all vertices and edges of .
For a quotient vertex represented on an interface, the vertices of whose interfaces contain it form a connected subgraph: identifications occur within an interface or across an edge of . The corresponding subtrees of therefore have connected union, and every leaf bag containing this vertex is attached to a bag containing it. Each internal gadget vertex appears only in its leaf bag. Thus the bags form a tree decomposition, with and , giving
Lemma 4.7 (Upper bound). For ,
this is the upper bound of Theorem 1.3.
Proof. Fix . For every , Lemma 4.6 with (gadgets of have at most 3 vertices) gives
Without loss of generality has no isolated vertices, as Definition 3.7 requires: writing with free of isolated vertices, , and is WL(1)-invariant.
(1) spanning subgraph

(2)
(3) identifications under

(4) identify


Figure 4.3: Example illustrating the canonical map sending the spanning subgraph to . is the witness graph for produced by the matching . The color of a vertex records its image under the label map . Note that lies outside the setting of the main theorem; this figure is for illustration only.
i.e. , where is the set of isomorphism classes of loopless expansions over all . By (3.4) of Lemma 3.8, is a linear combination of the counts for , and (Definition 1.2) says these counts agree. Thus for all , i.e. , and the upper bound of Theorem 1.3 is proved.
4.3 Lower bound for
We first construct a witness graph of treewidth with a canonical assignment expanding to (Lemmas 4.10 and 4.12). By counting edges, we show that every assignment expanding to uses only single gadgets, so appears in the expansion of with positive coefficient (Lemma 4.14). Since , Theorem 2.7 then yields with (Lemma 4.15). The reader is encouraged to reference Fig. 4.3 throughout this section. Recall the Krausz cliques of Definition 2.2. Throughout, and have no isolated vertices, is a gadget assignment, and is a spanning subgraph of , so and each vertex of is an edge of .
Definition 4.8 (B_{2}, label map). Let B_{2} denote the operation sending each vertex of a graph to a labeled copy of K_{2}. In particular, for G as above,
where the two vertices of are labeled by the endpoints of e. Write
for the label map, sending each vertex of to its label.
Since the edges of gadgets in are contained in their interfaces, the vertices and edges of are exactly those of modulo the identifications of the operation. Thus, denoting the equivalence relation generated by those identifications as , we have
(with parallel edges collapsed). Write for the associated quotient map.
Definition 4.9 (Canonical assignment). Let . Since is a subgraph of we have , and thus there is a unique vertex with in the Krausz clique . The canonical assignment assigns to the gadget identifying the unique vertices of and with label .
Lemma 4.10 (Realization). With a spanning subgraph of and the canonical assignment above,
Proof. Since only identifies vertices of with the same label, is constant on classes of and factors as
with sending each class of to the common label of its members. If then , so separates classes of distinct label and is loopless.
Fix . The label- vertex of and that of are identified by exactly when . Passing to , two vertices of label are equivalent iff their edges lie in one connected component of , i.e.
Note has no isolated vertices so and is onto; the label classes partition , so the fibers partition . Finally, each vertex contributes an edge of whose image in is ; as spans , induces a bijection .
To complete the proof, in one direction, if every is connected, each fiber is a single class, so is a bijection on vertices. Since it is also a bijection on edges it is an isomorphism, and .
In the other direction, if some is disconnected, then has at least two classes, so and .
Definition 4.11 (Witness graph). Let and fix a perfect matching of . For let be the matching edge incident to . The witness graph is the spanning subgraph of whose edges join each matching edge to every other edge of its Krausz clique. That is,
Each such pair , shares the vertex , so .
Lemma 4.12 (Witness graph). For , let be the canonical assignment of . Then and , so
Proof. For each , the Krausz clique induces a star in with center , which is connected. By Lemma 4.10, , and thus has treewidth .
For , we exhibit a tree decomposition. Create a central bag of the matching edges, and for each non-matching edge a bag adjacent to . Every vertex appears in some bag; the edges and of both lie in ; each matching edge occupies together with all bags containing it, a connected subtree; and each non-matching edge occupies a single bag. The width is for , so .
Finally, Lemma 4.6 gives
so (the second term of the maximum in Lemma 4.6 is at most ). Thus and the bound of Lemma 4.6 is achieved.
Remark 4.13. At , the construction in Definition 4.11 gives , of treewidth 2, with canonical expansion . Its treewidth is therefore too large to witness a failure of transfer at , consistent with .
Lemma 4.14 (Positivity). .
Proof. By Lemma 4.5, for every assignment , and since spans we have .
Now suppose . Then it has exactly edges, so the budget is tight: no edges of are identified by , and thus assigns no double gadget or . Hence
and therefore
with the canonical being one such assignment (Lemma 4.12).
Lemma 4.15 (Separating pair). For every there exist with ; this is the lower bound of Theorem 1.3.
Proof. By (3.4) applied to the witness ,
with , a finite set of pairwise non-isomorphic graphs. By Lemma 4.14 , and , so . Now suppose for contradiction that is -invariant, i.e.
Clearing the constant , this is exactly the hypothesis of Theorem 2.7 for and the class , whose conclusion is . This contradicts , and hence there exist with
Then implies , proving this lemma and the lower bound of Theorem 1.3.
4.4 Special case k = 1
For connected graphs the transfer result for the line graph at k = 1 also follows from covering theory, as Remark 4.19 sketches. We record a proof supplied by our framework for more general gadget families that we will also need in Section 5. It relies on a treewidth bound for expansions of forests that is sharper than Lemma 4.6.
We let be a tree with at least one edge and be an assignment. Forests follow componentwise, since an isolated vertex expands to two isolated vertices. Recall from Definition 3.3 that is composed of the interface vertices and edges
Each tree edge contributes, via the gadget , one or two identification edges recording the identifications that prescribes: a single gadget contributes the one edge ; a double gadget contributes the two edges or . Let be the identification graph on carrying these edges, so that the components of are the classes of , i.e. the vertices of .
Lemma 4.16. R is a forest, and lie in distinct components of R for every .
Proof. Suppose for contradiction that is either a simple cycle or a simple path from to for some . Projecting each interface vertex to sends to a closed walk in (both endpoints of a path project to ). Since is a tree this walk contains an immediate backtrack: two consecutive edges of projecting to the same tree edge of and thus belonging to the same gadget. This contradicts the fact that, by inspection, the identification graph is simple (no loops or parallel edges), and the identification edges of any one gadget are vertex-disjoint.
Proposition 4.17 (Forest expansion). For every forest and every assignment , is a forest.
Proof. Write for the quotient map onto . Take itself as the decomposition tree, with bag at ; by Lemma 4.16 these are two distinct vertices. Every vertex of is the class of some interface vertex and so lies in some bag. Every edge of is the image of some interface edge , since the gadgets of carry no other edges, and so lies in . Finally, for a fixed class , the set is the projection to of a component of , which is connected in because carries edges only along edges of ; a connected subgraph of a tree is a subtree. Thus is a tree decomposition of width 1, and is a forest.
Corollary 4.18. For all graphs , implies ; this is the case of Theorem 1.3.
Proof. Write a forest as , where has no isolated vertices. Then . By (3.4), the last factor is a rational combination of the counts with each a forest by Proposition 4.17, i.e. . If these counts and agree, so for every forest , i.e. , and the case of Theorem 1.3 is proved.
Remark 4.19. For connected graphs, the corollary also follows from covering theory. Connected graphs satisfy iff they have equal order and a common finite cover [KV15]; by Leighton's theorem [Lei82], the latter holds iff they have isomorphic universal covers. So let be connected, and let and be finite covers. Since and have equal order, both covers are d-sheeted. Then the covers and induce d-sheeted covers and . Thus is a common finite cover of and , which are connected and have the same order , and so . Iterating yields for all .
5 -line graphs: Proof of Theorem 1.5
Letting be a graph on , we represent each -clique by a tuple of its vertices and denote its underlying set by . Recall from Definition 1.4 that for and the -line graph has the -cliques of as vertices, with whenever .
Fix and for the rest of this section. Write for the -line graph operation and for its gadget family. The upper bounds of Corollaries 5.15 and 5.18 hold for every such . The lower bounds for require the additional hypothesis : is required for the witness construction of Proposition 5.11, and for the non-vanishing coefficients of Lemma 5.14 and Proposition 5.23. As in Section 4.1, we go through ordered -cliques to expand .
Definition 5.1 (Ordered -line graph). For let be the ordered clique indicator, equal to 1 when is an -clique of and 0 otherwise. With
the ordered -line graph is the undirected graph on with adjacency
5.1 The gadget family
Fix a graph on and with distinct entries throughout this section, and let denote a (partial) matching ; in particular we record the data of by the coincidence matching which has size since have no repeated entries. We suppress the dependence on and define the indicators
and observe
Lemma 5.2 (Coefficients). For with distinct entries,
where ranges over all matchings .
Proof. Consider the poset of matchings ordered by inclusion. The interval is the Boolean lattice on , with Möbius function . Inverting the second identity of (5.1),
Then substituting into the first identity of (5.1),
Then letting , there are sub-matchings of size s, and the coefficient identity of (5.2) follows.
For , this gives , recovering the coefficients of (Proposition 4.3). As a consistency check, the coefficients recover the adjacency rule of on cliques:
Corollary 5.3 (Adjacency recovery). For every ,
Proof. Substitute and exchange summation:
Reorganizing by the identity and re-indexing the inner sum by then yields
5.2 The case
We first build a gadget family representing (Definition 5.4 and Lemmas 5.5 and 5.6). We then describe when a spanning subgraph of expands to (Lemma 5.9), exhibit a graph of treewidth that does so (Definition 5.10 and Lemma 5.12) with nonzero coefficient (Lemma 5.14), and conclude with a lower bound for Theorem 1.5 in Corollary 5.15.
Definition 5.4 (The -line graph gadget family). The double clique gadget is the bi-labeled graph of interface size on whose edges form cliques on and for all . For a matching , the gadget is obtained from by identifying for each . The -line graph gadget family is
of interface size r.
When , , so , and every gadget of identifies some pair of vertices. For , the matchings of size 1 give the four single gadgets () and those of size 2 the doubles (), recovering (Definition 4.2).
Lemma 5.5 (Clique-gadget matrices). For every matching and every graph on ,
where is the ordered clique indicator of Definition 5.1.
Proof. Write . Since every vertex of is an interface vertex, if there exists a homomorphism with and , it is uniquely determined, and thus . Such a homomorphism exists iff are consistent with the identifications of and send edges of to edges of , i.e. , and the first equality is shown. Now for , so
If either or have repeated entries, then vanishes. Otherwise, Lemma 5.2 gives , and the right hand side is .
Lemma 5.6 (Duplication factor). For every graph H and every graph G without isolated vertices,
so represents with duplication factor .
Proof. The argument is that of Lemma 4.4 with orderings in place of 2. Tuples that do not represent -cliques are isolated in and cannot occur in the image of a homomorphism from .
Fix and take on (where every -subset is an -clique). Let be a set of -subsets of and be a spanning subgraph of , i.e.
For write for the Krausz class of ; at these are the Krausz cliques of Section 2.1. Definition 5.7 and Definition 5.8 directly generalize Definition 4.8 and Definition 4.9, while Lemma 5.9 has an additional condition beyond Lemma 4.10.
Definition 5.7 (, label map). Let denote the operation sending each vertex of a graph to a labeled copy of . For as above,
where the vertices of are labeled bijectively by the elements of . Write for the label map, sending each vertex to its label.
Suppose has no isolated vertices. Since every gadget consists of the two -cliques on its interfaces, the vertices and edges of are those of modulo the identifications of . Thus, writing for the equivalence relation generated by those relations,
(with parallel edges collapsed), with quotient map .
Definition 5.8 (Canonical assignment). The canonical assignment assigns to each edge the gadget identifying the -labeled vertex of with the -labeled vertex of for every . This is an assignment into provided for every edge ; for the witness graph of Definition 5.10, every edge has and .
Lemma 5.9 (Realization). Let be a spanning subgraph of without isolated vertices, with canonical assignment as above. Then
Proof. The proof is the same as Lemma 4.10 aside from the additional condition (ii). In the forward direction, note that two classes with the same label are never adjacent, since the vertices of each carry distinct labels. So implies each of the labels has exactly one class, which gives (i). For (ii), notice each contributes the clique edges among , so is an edge of iff some contains both and . At this is automatic from spanning .
From Definition 5.10 through Lemma 5.14, assume . The witness is built so that its treewidth is controlled by a single large bag and every realizing assignment uses only single gadgets, giving us the treewidth and non-vanishing coefficient respectively.
Definition 5.10 (Witness graph). Let with and fix a partition of on into partition cliques of size . Then fix a second family of cross cliques satisfying
• Every cross clique contains at most one vertex from each partition clique.
• For every pair with in different partition cliques, lies in some cross clique.
Such a family exists since : for instance, all -subsets of meeting distinct partition cliques in one vertex each.
Put , and let be the spanning subgraph of joining each partition clique to all cross cliques it intersects, i.e.
The hypothesis ensures is an edge of . At the partition cliques are the matching edges, and the cross cliques are the non-matching edges, recovering the construction of Definition 4.11.
Proposition 5.11 ( realizes ). satisfies (i) and (ii) of Lemma 5.9, so .
Proof. For (i), fix , and say . A clique of through is either the partition clique or some cross clique through , each of which meets exactly at . Thus is a star with center .
For (ii), each pair lies in some partition clique or else in a cross clique , and thus all such pairs are covered by .
Lemma 5.12 (Treewidth of the witness graph). For with ,
Proof. For the upper bound, as in Lemma 4.12, take a root bag and a leaf bag where . Every clique of lies in a bag; every edge lies in ; and the bags containing a fixed vertex form a subtree. The sizes are and , so the width is since .
For the lower bound, Lemma 4.6 with gives , since gadgets of have at most vertices. As , forces . The two bounds coincide.
Remark 5.13. The width is determined by the root bag once . For the leaf bags dominate and the decomposition gives only ; indeed, implies for every , so contains a complete bipartite of treewidth , one above the lower bound . In this case a different witness would be needed to achieve the lower bound where possible.
Lemma 5.14 (Coefficient of the witness graph). ; in particular occurs with nonzero coefficient in the gadget expansion of .
Proof. Fix a realizing assignment and an isomorphism . Let be the identification graph on the vertices of the blow-up whose edges connect vertices identified by the gadgets of , i.e., the connected components of are the classes of . Observe that admits the bipartition into partition cliques and cross cliques. For write for the image of the vertices of ; since is a clique and is loopless.
First we claim that the images of the partition cliques partition . Since , it suffices to show they cover . Suppose for contradiction that some vertex lies in no . Then the class contains no vertex from a partition clique, and thus each edge incident to is an edge of some cross clique . Since is adjacent to all other vertices of this implies
Now each cross clique contributes at most distinct vertices to the union, so there must be at least two cross cliques containing . Thus contains a vertex and a vertex . Now the bipartition of implies each edge of the identification graph connects a partition clique to a cross clique. Thus there exists some path from to in which must contain a vertex of for some partition clique , the desired contradiction. Therefore partitions .
Now we claim that every realizing assignment uses only single gadgets, i.e., gadgets with . Fix a cross clique with neighborhood in . Each gadget on matches a nonempty subset of to . These subsets are pairwise disjoint, since the images are disjoint. As has vertices, each subset is a singleton. Thus every edge incident to is assigned a single gadget.
Every realizing assignment therefore contributes , using (Lemma 5.2). The canonical assignment is a realizer (Proposition 5.11), so
Corollary 5.15 (Transfer for the -line graph). For every ,
Further, for , is the least possible value on the left-hand side: there exist with . The first statement holds for every , the second whenever .
Proof. For the upper bound, as in Lemma 4.7 with : for and any , Lemma 4.6 gives (gadgets of have at most vertices, and ), so the isomorphism types of the loopless expansions lie in . By (3.4) (with , Lemma 5.6) is a combination of the counts , ; so forces .
For the lower bound, set , , and take the witness graph on . By Lemma 5.12 ; by Proposition 5.11 ; and by Lemma 5.14 . Applying (3.4) to ,
Since , , and , so . Were a -invariant, Theorem 2.7 applied to would force , a contradiction. Hence there exist with ; as , this gives . Together with the upper bound this is the case of Theorem 1.5 where .
Remark 5.16. For , is the complete graph on the -cliques of . Its order is , a -invariant since . Thus, for every ,
so together with the lower bound of Remark 5.19, for every , and the lower bound in item 1 of Theorem 1.5 is attained.
Without loss of generality has no isolated vertices, as Definition 3.7 requires: writing with free of isolated vertices, , and is a -invariant, since every homomorphism from into a loopless graph is injective.
5.3 The case k = 1
The witness graph of Definition 5.10 has treewidth at least (Lemma 5.12 and Remark 5.13), and thus fails for . Additionally, Lemma 4.6 gives the loose upper bound , rather than the true value of . The gap comes from the use of the blow-up , which fully connects adjacent cliques. Gadgets of add no edges between cliques, so the treewidth grows less.
Lemma 5.17 (Forest expansion). For every forest and assignment , we have .
Proof. We may assume that is a tree with at least one edge, since expansions respect disjoint unions and an isolated vertex expands to isolated vertices. Write as in Definition 5.7, with quotient map , and let be the identification graph on whose edges record the identifications prescribed by the gadgets, so the components of are the vertices of . The proof of Lemma 4.16 applies with in place of [2]: is a forest and the interface vertices of each lie in distinct components.
Take itself as the decomposition tree, with bag at ; by the above . Every vertex of is the class of some interface vertex and so lies in some bag. Every edge of is the image of an edge of some , since gadgets carry no cross-interface edges, and so lies in . Finally, for a fixed class , the set is the projection to of a component of , which is connected in because carries edges only along edges of ; a connected subgraph of a forest is a subtree. Thus is a tree decomposition of width .
At r = 2 this recovers Proposition 4.17: a graph of treewidth at most 1 is a forest.
Corollary 5.18 (Transfer at ). for every and ; this is the case of Theorem 1.5.
Proof. For the upper bound, write a forest as , where has no isolated vertices. Then . By (3.4), the last factor is a rational combination of the with by Lemma 5.17. Since , all these counts agree when , so .
For the lower bound, for this is Theorem 1.3, so let . Since every homomorphism from into a loopless graph is injective, with image an -clique, . Were this a -invariant, Theorem 2.7 would place in , contradicting . Hence some have , i.e., , and as this gives .
Remark 5.19. The lower bound uses only the probe , so for every ; this is the bound that Corollary 5.24 doubles for . The upper bound uses only that gadgets add no cross-interface edges. For there is no analogue of the covering-theoretic argument available at : a cover need not induce a cover , since a triangle of lifts to a path.
5.4 Lower bound for
Corollary 5.15 leaves open sharpness in the range , where the witness graphs of Definition 5.10, all of treewidth at least (Lemma 5.12 and Remark 5.13), are too dense. We record a lower bound that holds uniformly in , obtained from the alternative witness graph
of treewidth 2. Throughout this subsection we assume and the sign condition
(†)
The following gives some criteria under which this holds automatically.
Lemma 5.20 (Admissible intersection sets). Write , so that reads for . Then holds in both of the following cases:
(i) consists of only odd numbers, in which case for every ;
(ii) , in which case , which is nonnegative for .
In particular holds for and for the hypergraph-line-graph family .
Proof. We treat the two conditions separately. For (i), when every is odd then is a sum of binomial coefficients.
For (ii), for , split off the term and apply :
For the binomial vanishes and ; for it is . In both cases , since : in case (i) the term alone gives , and in case (ii) .
For , as in Lemma 5.14, a realizing assignment with partitions the vertices of into the classes , which are the components of the identification graph . We define the of the class as the set of vertices whose blow-up meets .
Lemma 5.21 (Supports). Let be a realizing assignment with and the supports of its classes.
(i) Each vertex of lies in exactly supports, and is a bijection for all .
(ii) Every edge of joins to for some edge of . Thus each is connected in , i.e., an arc (vertex set inducing a path) or all of .
(iii) is complete iff intersect pairwise.
Proof. For (i), the restriction is injective, since is a clique and is loopless. Thus each class intersects in at most one vertex, and the vertices of lie in distinct classes. This implies each vertex lies in exactly supports, and the map sending vertices of to is injective; by the definition of the support, its image is .
For (ii), the edges of are the identifications prescribed by the gadgets, and identifies vertices of with vertices of only. Mapping the component of to therefore gives a connected subgraph of with vertex set .
For (iii), two classes are adjacent in iff some contains a vertex of each, i.e., iff for some .
Lemma 5.22 (Arc packing). Let be a family of arcs of that intersect pairwise and cover each vertex exactly times. Then .
Proof. Let with endpoints be an arc of minimal length. Any other arc of intersects and must contain one of its endpoints by the minimality of . Since each vertex is covered exactly times, at most arcs contain and at most arcs contain . Since contains both, the total number of arcs .
Proposition 5.23 (Cycle witness). Let and . Then for every S satisfying ,
where
is the coefficient in the gadget decomposition of Lemma 3.8.
Proof. Fix a realizing assignment with , and let be the supports of its classes.
We first show that no support is all of . Suppose supports equal . By Lemma 5.21, the remaining supports are arcs, intersecting pairwise and covering each vertex of exactly times. Lemma 5.22 gives , i.e., , i.e., , a contradiction. So every is an arc, and is a path.
Next, by results (i) and (ii) of Lemma 5.21, the component of on is isomorphic to , i.e., it is a path on vertices. For an edge of let be the number of supports containing . A class whose support contains has one vertex in each of and , joined by exactly one edge of . So for a matching with , and by Definition 5.4 , so the summand of in is . Under every nonzero has sign , so every nonzero summand of has sign . Using Lemma 5.21(i) to count the edges of in two ways, we have
Thus the sign of the summand of g is
the last equality because n is odd, and therefore the summands cannot cancel.
Finally, we exhibit a realizing assignment. Identify with , orient each edge from to , and label the interface vertices of bijectively by , a set of distinct residues since . Let , where identifies the unique vertices of and of label for each of the labels common to both blocks. Then , and by , so . Observe that label appears exactly in the blocks for in the arc , and identifies only vertices of equal label, gluing consecutive blocks along each arc; hence the classes of are exactly the label classes, with supports . The vertices of each have distinct labels, so is loopless. Since any two arcs of vertices meet when , Lemma 5.21(iii) shows that is complete. Finally, each edge lies in exactly supports, namely for , so throughout and the summand of is . Hence .
Corollary 5.24 (Uniform lower bound for ). Let and let satisfy . For every there exist with ; equivalently, .
Proof. has treewidth . By Proposition 5.23 , so , and . Were a -invariant, then Theorem 2.7 applied to through (3.4) would force , contradicting . Hence some satisfy ; as , this gives .
Remark 5.25. This doubles the bound of Remark 5.19; for it gives . By Lemma 5.21 and Lemma 5.22 no cycle realizes with , so is the best bound available in this way. For , it remains to determine whether holds for without the sign condition .
Use of AI
We used Claude Fable 5.1 and Opus 5.5 throughout this project. The idea of using gadget expansions to study line graphs and WL-equivalence was our own. Claude assisted with literature review and wrote code to test intermediate claims computationally. The witness graph constructions of our lower bounds are based on small examples found in searches written and executed by Claude. Claude produced the figures, checked the proofs, and proofread the manuscript. Claude also drafted parts of the text, most of which were completely rewritten by the authors. The authors have verified the paper's contents and are responsible for any errors.
References
[ADW17] Samson Abramsky, Anuj Dawar, and Pengming Wang. The pebbling comonad in finite model theory. In 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–12, 2017.
[AMP16] Kwangjun Ahn, Dhruv Medarametla, and Aaron Potechin. Graph matrices: norm bounds and applications. arXiv preprint arXiv:1604.03423, 2016.
[Bab16] László Babai. Graph isomorphism in quasipolynomial time [extended abstract]. In Proceedings of the 48th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 684–697, 2016.
[BB17] Jacob Biamonte and Ville Bergholm. Tensor networks in a nutshell. arXiv preprint arXiv:1708.00006, 2017.
[BCN89] A. E. Brouwer, A. M. Cohen, and A. Neumaier. Distance-Regular Graphs. Springer, Berlin, 1989.
[Ber73] Claude Berge. Graphs and Hypergraphs. North-Holland, Amsterdam, 1973.
[BES80] László Babai, Paul Erdős, and Stanley M. Selkow. Random graph isomorphism. SIAM Journal on Computing, 9(3):628–635, 1980.
[BHK+19] Boaz Barak, Samuel B. Hopkins, Jonathan Kelner, Pravesh K. Kothari, Ankur Moitra, and Aaron Potechin. A nearly tight sum-of-squares lower bound for the planted clique problem. SIAM Journal on Computing, 48(2):687–735, 2019.
[BI84] Eiichi Bannai and Tatsuro Ito. Algebraic Combinatorics I: Association Schemes. Benjamin/Cummings, Menlo Park, CA, 1984.
[CDM17] Radu Curticapean, Holger Dell, and Dániel Marx. Homomorphisms are a good basis for counting small subgraphs. In Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pages 210–223, 2017.
[CFI92] Jin-Yi Cai, Martin Fürer, and Neil Immerman. An optimal lower bound on the number of variables for graph identification. Combinatorica, 12(4):389–410, 1992.
[CL87] Bor-Liang Chen and Ko-Wei Lih. Hamiltonian uniform subset graphs. Journal of Combinatorial Theory, Series B, 42(3):257–263, 1987.
[CLB19] Zhengdao Chen, Xiang Li, and Joan Bruna. Supervised community detection with line graph neural networks. In International Conference on Learning Representations (ICLR), 2019.
[DGR18] Holger Dell, Martin Grohe, and Gaurav Rattan. Lovász meets Weisfeiler and Leman. In 45th International Colloquium on Automata, Languages, and Programming (ICALP 2018), volume 107 of LIPIcs, pages 40:1–40:14. Schloss Dagstuhl, 2018.
[DHP24] Amina Doumane, Samuel Humeau, and Damien Pous. A finite presentation of graphs of treewidth at most three. In 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), volume 297 of LIPIcs, pages 135:1–135:18. Schloss Dagstuhl, 2024.
[DJR21] Anuj Dawar, Tomáš Jakl, and Luca Reggio. Lovász-type theorems and game comonads. In 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–13, 2021.
[Dvo10] Zdeněk Dvořák. On recognizing graphs by numbers of homomorphisms. Journal of Graph Theory, 64(4):330–342, 2010.
[FSS24] Eva Fluck, Tim Seppelt, and Gian Luca Spitzer. Going deep and going wide: Counting logic and homomorphism indistinguishability over graphs of bounded treedepth and treewidth. In 32nd EACSL Annual Conference on Computer Science Logic (CSL 2024), volume 288 of LIPIcs, pages 27:1–27:17. Schloss Dagstuhl, 2024.
[GN21] Martin Grohe and Daniel Neuen. Recent advances on the graph isomorphism problem. In Surveys in Combinatorics 2021, London Mathematical Society Lecture Note Series, pages 187–234. Cambridge University Press, 2021.
[GRS25] Martin Grohe, Gaurav Rattan, and Tim Seppelt. Homomorphism tensors and linear equations. Advances in Combinatorics, April 2025.
[Hav18] Ishay Haviv. On minrank and the Lovász theta function. In Approximation, Randomization, and Combinatorial Optimization (APPROX/RANDOM 2018), volume 116 of LIPIcs, pages 13:1–13:15, 2018.
[Kra43] J. Krausz. Démonstration nouvelle d'un théorème de Whitney sur les réseaux. Matematikai és Fizikai Lapok, 50:75–85, 1943.
[KV15] Andreas Krebs and Oleg Verbitsky. Universal covers, color refinement, and two-variable counting logic: Lower bounds for the depth. In Proceedings of the 30th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS 2015), pages 689–700. IEEE Computer Society, 2015.
[Lei82] Frank Thomson Leighton. Finite common coverings of graphs. Journal of Combinatorial Theory, Series B, 33(3):231–238, 1982.
[Lov67] László Lovász. Operations with structures. Acta Mathematica Academiae Scientiarum Hungaricae, 18:321–328, 1967.
[Lov12] László Lovász. Large Networks and Graph Limits, volume 60 of Colloquium Publications. American Mathematical Society, 2012.
[LS22] Xin Liu and Yangqiu Song. Graph convolutional networks with dual message passing for subgraph isomorphism counting and matching. Proceedings of the AAAI Conference on Artificial Intelligence, 36(7):7594–7602, 2022.
[LSBT15] Aparna Lakshmanan S., Csilla Bujtás, and Zsolt Tuza. Generalized line graphs: Cartesian products and complexity of recognition. The Electronic Journal of Combinatorics, 22(3):P3.33, 2015.
[LSBT16] Aparna Lakshmanan S., Csilla Bujtás, and Zsolt Tuza. Induced cycles in triangle graphs. Discrete Applied Mathematics, 209:264–275, 2016.
[MP14] Brendan D. McKay and Adolfo Piperno. Practical graph isomorphism, II. Journal of Symbolic Computation, 60:94–112, 2014.
[MR20] Laura Mančinska and David E. Roberson. Quantum isomorphism is equivalent to equality of homomorphism counts from planar graphs. In Proceedings of the 61st Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 661–672, 2020. Full version: arXiv:1910.06958.
[MRF+19] Christopher Morris, Martin Ritzert, Matthias Fey, William L. Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and Leman go neural: Higher-order graph neural networks. Proceedings of the AAAI Conference on Artificial Intelligence, 33(1):4602–4609, 2019.
[MW19] Ankur Moitra and Alexander S. Wein. Spectral methods from tensor networks. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (STOC 2019), pages 926–937, 2019.
[Neu24] Daniel Neuen. Homomorphism-distinguishing closedness for graphs of bounded tree-width. In 41st International Symposium on Theoretical Aspects of Computer Science (STACS 2024), volume 289 of LIPIcs, pages 53:1–53:12. Schloss Dagstuhl, 2024.
[NRSS82] R. N. Naik, S. B. Rao, S. S. Shrikhande, and N. M. Singhi. Intersection graphs of k-uniform linear hypergraphs. European Journal of Combinatorics, 3(2):159–172, 1982.
[NS26] Daniel Neuen and Tim Seppelt. Distinguishing graphs by counting homomorphisms from sparse graphs. In 41st Annual Symposium on Logic in Computer Science (LICS 2026), volume 380 of LIPIcs, pages 75:1–75:29. Schloss Dagstuhl, 2026.
[Ott97] Martin Otto. Bounded Variable Logics and Counting: A Study in Finite Models, volume 9 of Lecture Notes in Logic. Springer, 1997.
[Rob22] David E. Roberson. Oddomorphisms and homomorphism indistinguishability over graphs of bounded degree. arXiv preprint arXiv:2206.10321, 2022.
[RS23] David E. Roberson and Tim Seppelt. Lasserre hierarchy for graph isomorphism and homomorphism indistinguishability. In 50th International Colloquium on Automata, Languages, and Programming (ICALP 2023), volume 261 of LIPIcs, pages 101:1–101:18, 2023.
[Sep24a] Tim Seppelt. Homomorphism indistinguishability zoo. https://tseppelt.github.io/homind-database, 2024. Online database.
[Sep24b] Tim Seppelt. Logical equivalences, homomorphism indistinguishability, and forbidden minors. Information and Computation, 301:105224, 2024.
[Thi00] Nicolas M. Thiéry. Algebraic invariants of graphs; a study based on computer exploration. ACM SIGSAM Bulletin, 34(3):9–20, 2000.
[Wes01] Douglas B. West. Introduction to Graph Theory. Prentice Hall, 2nd edition, 2001.
[Whi32] Hassler Whitney. Congruent graphs and the connectivity of graphs. American Journal of Mathematics, 54(1):150–168, 1932.
[XHLJ19] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations (ICLR), 2019.
[Yan26] Fan Yang. On the expressive power of implicit line-graph higher-order Weisfeiler–Leman. arXiv preprint arXiv:2609.16412, 2026.
[YH24] Fan Yang and Xingyue Huang. Theoretical insights into line graph transformation on graph learning. In NeurIPS 2024 Workshop on Symmetry and Geometry in Neural Representations (NeurReps), 2024.