Preprint
Article

This version is not peer-reviewed.

Every K4-Minor-Free Graph Is Ramsey Size-Linear

Submitted:

22 September 2026

Posted:

28 September 2026

You are already at the latest version

Abstract
A graph \(G\) is Ramsey size-linear if \(R(G,H)=O(e(H))\) for every graph \(H\) without isolated vertices. Erdős, Faudree, Rousseau and Schelp asked whether every graph in which each \(k\)-vertex subgraph spans at most \(2k-3\) edges is Ramsey size-linear (Erdős Problem #566). We prove that every graph with no \(K_4\)-minor is Ramsey size-linear, with \(R(G,H)\leq 624\,v(G)\,e(H)\). This covers all \(2\)-trees, which attain the density \(2k-3\), and extends results of Erdős et al. for graphs \(K_1+T\) with \(T\) a tree and for connected graphs with at most \(v(G)+1\) edges. The proof combines the triangle-elimination process and an averaging argument of Bradač, Gishboliner and Sudakov. As consequences, a connected graph with at most \(v(G)+2\) edges is Ramsey size-linear unless it contains \(K_4\) or \(K_4^*\), and each of the pairs \(\{K_4^*,W_4\}\) and \(\{W_5^-,W_5\}\) contains a minimally non-Ramsey size-linear graph. We also make explicit further structures produced by the proof of Bradač, Gishboliner and Sudakov and, by a computer search over graphs on at most eight vertices, reduce the open cases of the question to \(49\) minimal graphs governed by eleven cores.
Keywords: 
;  ;  ;  ;  

1. Introduction

For graphs G and H, the Ramsey number R ( G , H ) is the smallest integer N such that for every graph Γ on N vertices, Γ contains a copy of G or its complement Γ ¯ contains a copy of H. Harary conjectured that R ( K 3 , H ) ≤ 2 e ( H ) + 1 for every graph H without isolated vertices; this was proved by Sidorenko [18] and by Goddard and Kleitman [14]. Erdős, Faudree, Rousseau and Schelp [12] initiated a systematic study of this phenomenon and called a graph GRamsey size-linear if there is a constant C G such that
R ( G , H ) ≤ C G e ( H ) for every graph H without isolated vertices .
Among other results, they proved the following.
(i)
Every connected graph G with e ( G ) ≤ v ( G ) + 1 is Ramsey size-linear [12, Theorem 4].
(ii)
If G contains a subgraph with k vertices and at least 2 k − 2 edges, then G is not Ramsey size-linear [12, Corollary 1].
(iii)
If T is a tree, then K 1 + T is Ramsey size-linear; in fact R ( K 1 + T , H ) ≤ 2 v ( T ) e ( H ) [12, Theorem 3 and Corollary 2].
(iv)
Every graph with Turán number O ( n 3 / 2 ) is Ramsey size-linear [12, Theorem 5]; examples mentioned there include K 3 , 3 − e and Q 3 − e .
Fact (ii) comes from the lower bound R ( G , K n ) = Ω ( n / log n ) m 2 ( G ) , obtained by the probabilistic method [19] (see also [12,20]), where m 2 ( G ) = max { ( e ( F ) − 1 ) / ( v ( F ) − 2 ) : F ⊆ G , v ( F ) ≥ 3 } : a subgraph with k vertices and 2 k − 2 edges forces m 2 ( G ) > 2 , and then R ( G , K n ) grows faster than e ( K n ) . Erdős et al. asked whether this is the only obstruction.
Question 1.1
([12, Question 1]; Erdős Problem #566 [3]). Let G be a graph such that every subgraph of G on k ≥ 2 vertices has at most 2 k − 3 edges, that is, m 2 ( G ) ≤ 2 . Is G Ramsey size-linear?
They also asked whether K 3 , 3 , the cube Q 3 and K 4 * = K 5 − ( K 1 , 2 ∪ K 2 ) , the graph obtained from K 4 by subdividing one edge, are Ramsey size-linear [12, Question 2], noting that each of them would be minimally non-Ramsey size-linear otherwise; see also [11], and [2,5] for K 4 * . Here a graph is minimally non-Ramsey size-linear if it is not Ramsey size-linear but all its proper subgraphs are. Erdős et al. observed that K 4 is such a graph and asked for others [12, Question 6] (Erdős Problem #79). Related questions are collected as Erdős Problems #566–#570 [3].
Facts (ii) and (iii) show that the density 2 k − 3 in Question 1.1 cannot be raised and is attained by Ramsey size-linear graphs. Balister, Schelp and Simonovits [2] proved that joining two vertices at distance d of a Ramsey size-linear graph by a new path of length at least d + 3 preserves the property. They asked whether every 2-connected graph of minimum degree at least three fails to be Ramsey size-linear; this was answered negatively by combining (iv) with a construction of Janzer [16], as observed in [5]. Bradač, Gishboliner and Sudakov [5] proved that every subdivision of K 4 with at least six vertices is Ramsey size-linear, that R ( K 4 * , F ) = O ( e ( F ) ) for every bipartite F, and that R ( K 4 * , K n ) = O ( n 5 / 2 ) , and remarked that Question 1.1 seems to be out of reach. Wigderson [20, Open problem 5] proved that there are infinitely many minimally non-Ramsey size-linear graphs; his argument is non-constructive, and he asked for an explicit example other than K 4  [20]. For cycles, the optimal linear constant was recently determined by Cambie, Freschi, Morawski, Petrova and Pokrovskiy [7]; see also [15].

Main Result

Theorem 1.2.
Let G be a graph with no K 4 -minor, equivalently a graph of treewidth at most two, and let h = max { v ( G ) , 3 } . Then for every graph H with m ≥ 1 edges and no isolated vertices,
R ( G , H ) ≤ ( 624 h − 1816 ) m .
In particular, every K 4 -minor-free graph is Ramsey size-linear.
A graph of treewidth at most two on k ≥ 2 vertices has at most 2 k − 3 edges, with equality for 2-trees, and its subgraphs again have treewidth at most two. Thus Theorem 1.2 answers Question 1.1 affirmatively for a minor-closed class which contains graphs of the extremal density 2 k − 3 allowed there, including all 2-trees, all outerplanar graphs and all series–parallel graphs. It extends facts (i) and (iii): the graphs K 1 + T have treewidth two, and a connected graph containing a subdivision of K 4 has cyclomatic number e − v + 1 ≥ 3 , so connected graphs with at most v ( G ) + 1 edges have no K 4 -minor. The smallest graphs covered by Theorem 1.2 but by none of the results quoted above have six vertices: the 3-sun (a triangle with a further triangle attached along each of its edges), the strip of four triangles, and the triangular prism minus one of its three matching edges (Section 7). We have not found Theorem 1.2 stated in the literature.
The proof has two steps, both relying on ideas of [5]. The first (Lemma 3.1) is the averaging argument of [5, Claim 4.4], stated as a general embedding result: if a graph Γ on N vertices has at most λ e ( Γ ) triangles, then Γ ¯ contains every graph without isolated vertices having at most N / ( 624 λ + 56 ) edges. The second (Lemma 4.1) uses the triangle-elimination process of [5, Section 4]: if H is a 2-tree on h vertices, the process eliminates every triangle of an H-free graph Γ , so Γ has at most ( h − 3 ) e ( Γ ) triangles. In [5] these tools are used to find subdivisions of K 4 ; the point here is that for 2-trees they suffice on their own.

Consequences

Corollary 1.3.
Let G be a connected graph with e ( G ) ≤ v ( G ) + 2 .
(a)
If G contains neither K 4 nor K 4 * , then G is Ramsey size-linear.
(b)
If G contains K 4 , then G is not Ramsey size-linear.
(c)
If G contains K 4 * , then G is Ramsey size-linear if and only if K 4 * is.
Thus the threshold v ( G ) + 1 of fact (i), which is sharp because of K 4 , can be raised to v ( G ) + 2 at the cost of a single unresolved graph, K 4 * .
For k ≥ 3 let W k = K 1 + C k be the wheel with k spokes, and for k ≥ 4 let W k − denote W k with one spoke removed; see Figure 1.
Proposition 1.4.
Let k ≥ 4 .
(a)
W k is not Ramsey size-linear, while W k minus a rim edge is. Consequently, W k is minimally non-Ramsey size-linear if and only if W k − is Ramsey size-linear.
(b)
W 4 − ≅ K 4 * .
(c)
m 2 ( W k − ) = 2 . Hence an affirmative answer to Question 1.1 would imply that every wheel W k with k ≥ 4 is minimally non-Ramsey size-linear.
(d)
For k ∈ { 4 , 5 } every proper subgraph of W k − is Ramsey size-linear. Consequently each of the pairs { K 4 * , W 4 } and { W 5 − , W 5 } contains a minimally non-Ramsey size-linear graph. In particular, there are at least two minimally non-Ramsey size-linear graphs other than K 4 : one of K 4 * , W 4 on five vertices and one of W 5 − , W 5 on six vertices.
Proposition 1.4 does not depend on Theorem 1.2: it follows from facts (i)–(iii) and [5]. Erdős et al. already observed that K 4 * would be minimally non-Ramsey size-linear if it were not Ramsey size-linear [12]; the new point is the other member of each pair. Part (d) does not settle Wigderson’s problem, since we cannot say which member of each pair is minimally non-Ramsey size-linear. It does show that any resolution of the question of Erdős et al. for K 4 * , in either direction, produces an explicit minimally non-Ramsey size-linear graph other than K 4 : namely W 4 if K 4 * is Ramsey size-linear, and K 4 * itself otherwise. The same holds for W 5 − and W 5 . Our computations (Section 7) show that, with the tools currently available, these are the only such pairs among the density-critical graphs on at most eight vertices.
Finally, in Section 6 we make explicit what the proof of [5, Theorem 4] actually produces, and in Section 7 we determine by an exhaustive computer search the minimal graphs on at most eight vertices that satisfy the hypothesis of Question 1.1 but whose Ramsey size-linearity does not follow from the results available. Apart from K 4 * there are 3, 10 and 35 of them on six, seven and eight vertices. The three on six vertices are W 5 − , the triangular prism and K 3 , 3 , and all of them reduce to one of eleven cores (Proposition 7.2).
Organization.Section 2 collects preliminaries. Lemma 3.1 is proved in Section 3 and Lemma 4.1 in Section 4. Section 5 contains the proofs of Theorem 1.2, Corollary 1.3 and Proposition 1.4, Section 6 the consequences of the proof of [5], Section 7 the census of small cases, and Section 8 concluding remarks and open questions.

2. Preliminaries

All graphs are finite and simple. For a graph Γ we write v ( Γ ) and e ( Γ ) for the numbers of vertices and edges, N Γ ( x ) and d Γ ( x ) for the neighbourhood and the degree of a vertex x, T ( Γ ) for the number of triangles, and Γ ¯ for the complement. We say that Γ containsG if Γ has a (not necessarily induced) subgraph isomorphic to G, and that Γ is G-free otherwise. If G ⊆ G ′ then R ( G , H ) ≤ R ( G ′ , H ) ; hence every subgraph of a Ramsey size-linear graph is Ramsey size-linear.

Treewidth.

A 2-tree is a graph obtained from a triangle by repeatedly adding a new vertex adjacent to both ends of an existing edge. A 2-tree on k ≥ 3 vertices has 2 k − 3 edges. We use the following standard facts; see [4,9,10].
(T1)
A graph has treewidth at most two if and only if it has no K 4 -minor.
(T2)
Every graph of treewidth at most two with at least three vertices is a spanning subgraph of a 2-tree.
(T3)
A graph has a K 4 -minor if and only if it contains a subdivision of K 4 .
Lemma 2.1
(Bradač, Gishboliner and Sudakov [5, Lemma 2.3]). Let H be a graph with m edges, let 0 ≤ k ≤ v ( H ) , and let A be a set of k vertices of largest degree in H. Let Γ be a graph on N vertices with average degree d, and let σ ′ : A → V ( Γ ) be an embedding of H [ A ] into Γ ¯ . If
N ≥ 4 m k + 1 max max a ∈ A d Γ ( σ ′ ( a ) ) , 2 d + 2 v ( H ) ,
then σ ′ extends to an embedding of H into Γ ¯ .
(included for completeness)).Proof (Proof Let D denote the maximum in the displayed inequality and let W = { u : d Γ ( u ) ≤ 2 d } . Fewer than N / 2 vertices have degree larger than 2 d , so | W | > N / 2 . Embed the vertices of V ( H ) ∖ A one at a time into W. When x is to be embedded, each of the k vertices of A has degree at least d H ( x ) , so ( k + 1 ) d H ( x ) ≤ 2 m . The vertices that x must avoid are the images of the vertices already embedded (fewer than v ( H ) ) and the Γ -neighbours of the images of its embedded H-neighbours; each such image lies in σ ′ ( A ) or in W and so has Γ -degree at most D. Hence fewer than 2 m D / ( k + 1 ) + v ( H ) ≤ N / 2 < | W | vertices of W are excluded, and x can be embedded.    □
Lemma 2.2
(Erdős, Faudree, Rousseau and Schelp [12, Lemma 2 and Corollary 3]; see also [5, Lemma 5.3]). If G is connected and G = G 1 ∪ G 2 with | V ( G 1 ) ∩ V ( G 2 ) | = 1 , then R ( G , H ) ≤ R ( G 1 , H ) + R ( G 2 , H ) for every graph H without isolated vertices. Consequently, a connected graph is Ramsey size-linear if and only if all its blocks are.
For disjoint unions one has R ( G 1 ∪ G 2 , H ) ≤ R ( G 1 , H ) + R ( G 2 , H ) + v ( G 1 ) , so a graph is Ramsey size-linear if and only if all its blocks are, and it suffices to study 2-connected graphs.

3. Graphs with Few Triangles

The following lemma isolates the averaging argument of [5, Claim 4.4] as a general statement.
Lemma 3.1.
Let λ ≥ 0 and let Γ be a graph on N vertices with T ( Γ ) ≤ λ e ( Γ ) . Let H be a graph with m ≥ 1 edges and no isolated vertices. If N ≥ ( 624 λ + 56 ) m , then Γ ¯ contains H.
Proof. 
If e ( Γ ) = 0 then Γ ¯ is complete and contains H, as N ≥ 2 m ≥ v ( H ) . So let e = e ( Γ ) > 0 and let d = 2 e / N be the average degree. For a vertex x let
N ′ ( x ) = { y ∈ N Γ ( x ) : d Γ ( y ) ≤ d Γ ( x ) } , d ′ ( x ) = | N ′ ( x ) | , t ′ ( x ) = e Γ [ N ′ ( x ) ] .
For every edge x y we have y ∈ N ′ ( x ) or x ∈ N ′ ( y ) , so ∑ x d ′ ( x ) ≥ e . Every edge of Γ [ N ′ ( x ) ] forms a triangle with x, so ∑ x t ′ ( x ) ≤ 3 T ( Γ ) ≤ 3 λ e . Suppose first that λ > 0 and set
Φ ( x ) = d ′ ( x ) − d Γ ( x ) + 2 d 13 − t ′ ( x ) 6 λ .
Since ∑ x d Γ ( x ) = N d = 2 e , we get ∑ x Φ ( x ) ≥ e − 6 e 13 − e 2 = e 26 > 0 . Fix x with Φ ( x ) > 0 . Then d ′ ( x ) > 0 and
( a ) d Γ ( x ) < 13 d ′ ( x ) , ( b ) 2 d < 13 d ′ ( x ) , ( c ) 2 t ′ ( x ) / d ′ ( x ) < 12 λ .
By (c) the graph Γ [ N ′ ( x ) ] has average degree less than 12 λ , so by the Caro–Wei (or Turán) bound it contains an independent set I with | I | ≥ d ′ ( x ) / ( 12 λ + 1 ) ≥ 1 . If λ = 0 then Γ is triangle-free, every N ′ ( x ) is independent, and the same conclusion holds with I = N ′ ( x ) , using Φ ( x ) = d ′ ( x ) − ( d Γ ( x ) + 2 d ) / 13 and ∑ x Φ ( x ) ≥ e − 6 13 e = 7 13 e > 0 .
Every y ∈ I satisfies d Γ ( y ) ≤ d Γ ( x ) < 13 d ′ ( x ) ≤ 13 ( 12 λ + 1 ) | I | , and also 2 d < 13 ( 12 λ + 1 ) | I | . If | I | ≥ v ( H ) , then H embeds into Γ ¯ [ I ] , which is complete. Otherwise put k = | I | , let A be a set of k vertices of largest degree in H, and let σ ′ : A → I be any bijection; it embeds H [ A ] into Γ ¯ because I is independent in Γ . The maximum in Lemma 2.1 is at most 13 ( 12 λ + 1 ) k , so
4 m k + 1 · 13 ( 12 λ + 1 ) k + 2 v ( H ) < 52 ( 12 λ + 1 ) m + 4 m = ( 624 λ + 56 ) m ≤ N ,
using v ( H ) ≤ 2 m . Lemma 2.1 extends σ ′ to an embedding of H into Γ ¯ .    □
Remark 3.2.
Lemma 3.1 yields the following sufficient condition: if there is λ G such that every G-free graph Γ satisfies T ( Γ ) ≤ λ G e ( Γ ) , then R ( G , H ) ≤ ( 624 λ G + 56 ) e ( H ) and G is Ramsey size-linear. For G = K 3 it gives R ( K 3 , H ) ≤ 56 e ( H ) , much weaker than the sharp bound 2 e ( H ) + 1  [14,18]; no attempt has been made to optimise the constants.

4. Triangles in Graphs Without a Given 2-Tree

Lemma 4.1.
Let H be a 2-tree on h ≥ 3 vertices. Then every H-free graph Γ satisfies T ( Γ ) ≤ ( h − 3 ) e ( Γ ) .
Proof. 
The elimination process below is the one of [5, Section 4], and the embedding step follows [5, Proposition 1.1]. Let T be the set of triangles of Γ . As long as some edge of Γ lies in at least one and at most h − 3 triangles of T , choose such an edge and delete from T all triangles containing it. After this step the chosen edge lies in no triangle of T , and T only shrinks, so each edge is chosen at most once. Hence at most ( h − 3 ) e ( Γ ) triangles are deleted in total. Let T 0 be the final set. By construction, every edge lying in some triangle of T 0 lies in at least h − 2 triangles of T 0 .
We claim T 0 = ∅ , which gives T ( Γ ) ≤ ( h − 3 ) e ( Γ ) . Suppose not. Order V ( H ) as v 1 , … , v h so that v 1 v 2 v 3 is a triangle and each v i with i ≥ 4 is adjacent to exactly two earlier vertices v a , v b , which are adjacent. Map v 1 , v 2 , v 3 onto the vertices of a triangle of T 0 . Inductively, assume v 1 , … , v i − 1 are embedded injectively so that every edge of H [ { v 1 , … , v i − 1 } ] is mapped to an edge lying in a triangle of T 0 . The image of v a v b then lies in at least h − 2 triangles of T 0 , whose third vertices are distinct, while only i − 3 ≤ h − 3 vertices other than the images of v a , v b are already used. Choose an unused third vertex z and map v i to z; the two new edges belong to a triangle of T 0 , so the invariant is maintained. At the end we obtain a copy of H in Γ , a contradiction.    □

5. Proofs of the Main Results

Proof 
(Proof of Theorem 1.2). If v ( G ) ≤ 2 then G ⊆ K 3 ; otherwise, by (T1) and (T2), G is a spanning subgraph of a 2-tree G * on h vertices. In both cases G ⊆ G * for a 2-tree G * on h vertices. Let Γ be a graph on N ≥ ( 624 h − 1816 ) m vertices that does not contain G. Then Γ is G * -free, so T ( Γ ) ≤ ( h − 3 ) e ( Γ ) by Lemma 4.1, and Lemma 3.1 with λ = h − 3 shows that Γ ¯ contains H, because 624 ( h − 3 ) + 56 = 624 h − 1816 .    □
Proof 
(Proof of Corollary 1.3). (b) follows from fact (ii), since e ( K 4 ) = 2 · 4 − 2 . For (a) and (c), note first that if a connected graph G contains a connected subgraph S, then e ( G ) − v ( G ) ≥ e ( S ) − v ( S ) : G arises from S by adding edges and by adding vertices each joined by at least one edge. If G has no K 4 -minor, it is Ramsey size-linear by Theorem 1.2. Otherwise, by (T3), G contains a subdivision S of K 4 , and e ( S ) − v ( S ) = 2 ≥ e ( G ) − v ( G ) . Hence equality holds, which means that every edge of G outside S is a bridge: S is the only block of G with a cycle, and the other blocks are single edges. Now S ≠ K 4 in case (a), and S ¬ ≅ K 4 * unless G contains K 4 * ; the only subdivisions of K 4 with fewer than six vertices are K 4 and K 4 * . So in case (a), S has at least six vertices and is Ramsey size-linear by [5]; single edges are Ramsey size-linear, and Lemma 2.2 shows that G is Ramsey size-linear. In case (c), the 2-connected graph K 4 * lies in a block of G, hence in S; since S is 2-connected and e ( S ) − v ( S ) = e ( K 4 * ) − v ( K 4 * ) , the argument above (applied to K 4 * ⊆ S ) shows S = K 4 * . Thus G is obtained from K 4 * by attaching bridges, and it is Ramsey size-linear if K 4 * is, by Lemma 2.2; the converse holds because K 4 * ⊆ G .    □
Proof 
(Proof of Proposition 1.4). Let c be the hub of W k and u 1 u 2 … u k u 1 its rim.
(a) W k has k + 1 vertices and 2 k = 2 ( k + 1 ) − 2 edges, so it is not Ramsey size-linear by fact (ii). Deleting the rim edge u k u 1 leaves the fan K 1 + P k , which is Ramsey size-linear by fact (iii). Every proper subgraph of W k is contained in W k − f for some edge f, and for k ≥ 4 the automorphisms of W k act transitively on the spokes and on the rim edges. Hence all proper subgraphs of W k are Ramsey size-linear if and only if W k − is.
(b) Deleting the spoke c u 4 from W 4 leaves the complete graph on { c , u 1 , u 2 , u 3 } minus the edge u 1 u 3 , together with the path u 1 u 4 u 3 ; this is K 4 with the edge u 1 u 3 subdivided by u 4 .
(c) W k − has k + 1 vertices and 2 k − 1 = 2 ( k + 1 ) − 3 edges. Let S be a proper subset of its vertices with | S | = j ≥ 2 . If c ∉ S , then S spans at most j edges of the rim cycle if j = k , and at most j − 1 edges otherwise; in both cases at most 2 j − 3 edges when j ≥ 3 , and at most 1 edge when j = 2 . If c ∈ S , then S ∖ { c } is a proper subset of the rim, so it spans a linear forest with at most j − 2 edges, and together with at most j − 1 spokes S spans at most 2 j − 3 edges. Thus m 2 ( W k − ) = 2 , and the second statement follows from (a).
(d) For k = 4 : every proper subgraph of K 4 * is contained in K 4 * − f for an edge f, which is connected (as K 4 * is 2-connected) and has 6 = v + 1 edges, so it is Ramsey size-linear by fact (i). For k = 5 , let W 5 − = W 5 − c u 1 . If f is a rim edge, then deleting c from W 5 − − f leaves a path, so W 5 − − f is a subgraph of K 1 + P 5 and is Ramsey size-linear by fact (iii). If f is a spoke, then in W 5 − − f the hub is adjacent to exactly three vertices of the rim C 5 , so W 5 − − f is a subdivision of K 4 with six vertices (branch vertices: c and its three neighbours), which is Ramsey size-linear by [5]. Hence every proper subgraph of W k − is Ramsey size-linear for k ∈ { 4 , 5 } .
Now fix k ∈ { 4 , 5 } . If W k − is not Ramsey size-linear, then it is minimally non-Ramsey size-linear, since all its proper subgraphs are Ramsey size-linear. If W k − is Ramsey size-linear, then W k is minimally non-Ramsey size-linear by (a). In either case the pair { W k − , W k } contains a minimally non-Ramsey size-linear graph; the two pairs are disjoint and do not contain K 4 , and W 4 − ≅ K 4 * by (b).    □

6. More from the Proof of Bradač, Gishboliner and Sudakov

The proof of [5, Theorem 4] produces more than its statement asserts. We make this explicit, since it settles many small cases (Section 7). Throughout this section F is a graph with m ≥ 1 edges and no isolated vertices, Γ is a graph on N ≥ C m vertices whose complement contains no copy of F, and C ≫ C 1 ≫ C 0 are the constants of [5, Section 4]. Let G + be the set of edges lying in a triangle that survives the triangle-elimination process of Section 4 (run with threshold C 0 ), so that
every edge of G + lies in at least C 0 triangles all of whose edges are in G + .
Lemma 6.1.
Let B ⊆ Γ with E ( B ) ⊆ G + , and let K be obtained from B by repeatedly adding a new vertex joined to both ends of an existing edge. If v ( K ) < C 0 , then Γ contains a copy of K extending the copy of B.
Proof. 
Add the vertices of K ∖ B in the order of the construction. When a vertex is to be joined to the ends of an edge e, the copy of e lies in G + , so by (1) it lies in at least C 0 > v ( K ) triangles with all edges in G + ; their apexes are distinct, so one of them is unused. The two new edges lie in G + , so the invariant is maintained.    □
Write B 1 ( t 1 , t 2 ) for the graph with vertices v, u 1 , u 2 , w, z 1 , … , z t 1 , y 1 , … , y t 2 and edges v u 1 , v u 2 , v w , u 1 u 2 , u 1 z i , w z i ( i ≤ t 1 ) and u 2 y j , w y j ( j ≤ t 2 ) . For a multigraph Q on a set A of size s, write B 2 ( s , Q ) for the graph with vertices v 1 , v 2 , A and one vertex x f for each f ∈ E ( Q ) , and edges v 1 a , v 2 a ( a ∈ A ) together with the two edges joining x f to the ends of f. Finally, let c 1 , c 2 , c 3 be K 4 on { x , y , z , w } , the graph K 4 * obtained from it by subdividing x y once, and the graph H 3 obtained from it by subdividing x y twice. In c 1 the edge x y is called dead, in c 3 the edge of the subdivision path incident to y is called dead, and all other edges are live; in c 2 all edges are live.
Proposition 6.2.
With Γ as above and any fixed t 1 , t 2 , s and Q:
(a)
Γ contains a copy of B 1 ( t 1 , t 2 ) all of whose edges lie in G + ;
(b)
Γ contains a copy of B 2 ( s , Q ) all of whose edges lie in G + ;
(c)
Γ contains a copy of c 1 , of c 2 or of c 3 in which all live edges lie in G + .
Proof. 
Part (a) is what Case 1 of the proof of [5, Theorem 4] produces: a vertex v, an edge u 1 u 2 of G + with u 1 , u 2 ∈ N + ( v ) , and w ∈ N + ( v ) such that u 1 , w and u 2 , w each have more than C 0 common neighbours in G + ; choosing t 1 + t 2 distinct such common neighbours gives the copy. Part (b) is Case 2: it produces v 1 , v 2 and a set A ′ of common G + -neighbours of v 1 and v 2 such that every pair in A ′ has more than C 0 common neighbours in G + ; there | A ′ | ≥ 3 , and the same averaging gives | A ′ | ≥ s once C 1 is large in terms of s and C 0 . Choosing a distinct such common neighbour for each edge of Q gives the copy. Part (c) is the case analysis at the end of Case 3, whose possible outcomes are a copy of K 4 in which all edges except the one joining the two tips of a diamond lie in G + , a copy of K 4 * in G + , or a copy of H 3 in which all edges except one end edge of the subdivision path lie in G + . These arguments use only [5, Claims 4.1 and 4.4], which hold for every Γ as above, and not the graph whose copy is being sought; hence they apply simultaneously.    □
Corollary 6.3.
Every subgraph of a graph obtained from some B 1 ( t 1 , t 2 ) or some B 2 ( s , Q ) by 2-tree steps is Ramsey size-linear. So is every graph which, for each i ∈ { 1 , 2 , 3 } , is a subgraph of a graph obtained from c i by 2-tree steps along live edges and along edges created by earlier steps.
Proof. 
Combine Proposition 6.2 with Lemma 6.1 (applied to the live edges), taking C 0 larger than the order of the graph sought, and use that subgraphs of Ramsey size-linear graphs are Ramsey size-linear.    □
Corollary 6.3 contains [5, Theorem 4], which is how that theorem is proved: a subdivision of K 4 on at least six vertices is a subdivision of H 1 , H 2 or H 3 , and a subdivided edge x y is a subgraph of a fan with hub y glued along x y by 2-tree steps.

7. The Remaining Small Cases

By Lemma 2.2 it suffices to consider 2-connected graphs. The next proposition describes the minimal graphs not covered by Theorem 1.2 and [5]. An S-ear of a subgraph S is a path of length at least one whose two (distinct) ends lie in S and whose inner vertices and edges do not belong to S.
Proposition 7.1.
Let G be a 2-connected graph with m 2 ( G ) ≤ 2 which has a K 4 -minor and is not a subdivision of K 4 with at least six vertices. Then G contains K 4 * , or G contains a subgraph S ∪ P , where S is a subdivision of K 4 with at least six vertices and P is an S-ear. Every such S ∪ P is 2-connected, has a K 4 -minor and satisfies e ( S ∪ P ) = v ( S ∪ P ) + 3 .
Proof. 
By (T3), G contains a subdivision S of K 4 . We have S ¬ ≅ K 4 because m 2 ( K 4 ) > 2 . If S ≅ K 4 * we are done; otherwise v ( S ) ≥ 6 , and S ≠ G by assumption. If some edge of G outside S joins two vertices of S, it is an S-ear. Otherwise G has a vertex outside S; let C be a component of G − V ( S ) . Since G is 2-connected, C has neighbours in at least two vertices x ≠ y of S, and a path from x to y through C is an S-ear. The last sentence is clear, since adding an ear increases e − v by one.    □
Consequently, if only Theorem 1.2 and [5] are used, every minimal unresolved graph other than K 4 * has the form S ∪ P and has exactly v + 3 edges; Turán-type results can create exceptions, such as Q 3 below. By the path-extension result of [2], S ∪ P is Ramsey size-linear whenever P has length at least d S ( x , y ) + 3 , where x , y are its ends, so only short ears matter.

Computation.

We enumerated all 2-connected graphs G with at most eight vertices and m 2 ( G ) ≤ 2 . For v ( G ) ≤ 7 we used the atlas of all graphs on at most seven vertices, as implemented in NetworkX. For v ( G ) = 8 we used that such a graph has minimum degree 2 or 3 (as e ( G ) ≤ 2 v ( G ) − 3 ), so it is obtained from a graph on seven vertices with m 2 ≤ 2 by adding a vertex of degree 2 or 3; isomorphism classes were separated by Weisfeiler–Leman hashes followed by exact isomorphism tests. An independent enumeration, adding a vertex with an arbitrary neighbourhood to every graph on seven vertices, gave the same number, 1224. Each graph was classified by the following sufficient conditions for Ramsey size-linearity, all taken from the literature except (C3): (C1)  e ( G ) ≤ v ( G ) + 1 [12, Theorem 4]; (C2)  G − v is a forest for some vertex v, that is, G is a subgraph of some K 1 + T [12, Theorem 3]; (C3) treewidth at most two (Theorem 1.2); (C4) G is a subdivision of K 4 with at least six vertices [5]; (C5) G is bipartite and all vertices of one colour class have degree at most two, whence its Turán number is O ( n 3 / 2 )  [1,13]; (C6) G is a subgraph of K 3 , 3 − e or of Q 3 − e , whose Turán numbers are stated to be O ( n 3 / 2 ) in [12] (for (C5) and (C6) we use [12, Theorem 5]); (C7) G arises from a graph whose blocks satisfy one of the previous conditions by adding a path of length at least d ( x , y ) + 3 between two of its vertices x , y  [2, Corollary 2]; (C8) G is a subgraph of a graph satisfying one of (C1), (C2) or (C4)–(C7); (C9) G is a subgraph of a 2-tree extension of some B 1 ( t 1 , t 2 ) or B 2 ( s , Q ) (Corollary 6.3); (C10) G lies in the extension class of each of c 1 , c 2 , c 3 (Corollary 6.3). Treewidth was tested by series–parallel reduction. A graph is unresolved if none of (C1)–(C8) applies, and minimal unresolved if moreover all its proper subgraphs are resolved. Conditions (C9) and (C10) were tested by a reduction: a graph lies in the extension class of a base B if and only if it can be reduced to a subgraph of B by repeatedly deleting a vertex of degree at most two and, when its degree is two, adding the edge between its two neighbours (an edge which must be live). Table 1 separates the contributions of (C3) and of (C9)–(C10).
On five vertices Theorem 1.2 adds nothing: Erdős et al. had already settled every graph on at most five vertices except K 4 *  [12, Section 3]. On six vertices it settles exactly three graphs not covered before, namely the 3-sun, the strip of four triangles and the prism minus a matching edge.
After all ten conditions, 49 minimal unresolved graphs remain: K 4 * ; on six vertices W 5 − , the triangular prism and K 3 , 3 ; and 10 and 35 graphs on seven and eight vertices, listed in Appendix A. They are governed by few cores. Call a graph a core if it has minimum degree at least three, and reduce a graph by repeatedly deleting a vertex of degree at most two, adding the edge between its two neighbours when the degree is two; each step undoes a 2-tree step, possibly after deleting edges.
Proposition 7.2.
Each of the 49 minimal unresolved graphs on at most eight vertices reduces to exactly one of the following eleven cores (listed with the number of graphs reducing to it):
  • six cores which arenotRamsey size-linear, having 2 v − 2 edges: K 4 (5 graphs), the wheel W 4 (22 graphs), and four graphs on six vertices with ten edges (1 graph each);
  • five cores with m 2 = 2 and minimum degree three: the triangular prism (10 graphs), K 3 , 3 (5), the cube Q 3 , a graph on seven vertices with eleven edges, and a cubic graph on eight vertices (1 graph each).
In particular K 4 * and W 5 − are the smallest members of the first group: they are obtained from the non-Ramsey size-linear graphs K 4 and W 4 by subdividing one edge. The second group contains the graphs K 3 , 3 and Q 3 of [12, Question 2]. No graph of either group lies in one of the extension classes of Corollary 6.3, so settling any of them requires a new argument.

Density-critical graphs.

Call Gdensity-critical if e ( G ) = 2 v ( G ) − 2 and every proper subset S of V ( G ) with | S | ≥ 2 spans at most 2 | S | − 3 edges. By fact (ii) such a graph is not Ramsey size-linear, and every minimal non-Ramsey size-linear graph G with m 2 ( G ) > 2 is density-critical. A density-critical graph has minimum degree exactly three. There are 1, 1, 4, 15 and 109 of them on 4 , … , 8 vertices. For each, we determined the unresolved 2-connected proper subgraphs (every proper subgraph lies in some G − f , and every 2-connected subgraph of G − f lies in a block of G − f ). The argument of Proposition 1.4(d) applies to G exactly when all of them are minimal unresolved; this happens only for K 4 (with no unresolved subgraphs), for W 4 (with K 4 * ) and for W 5 (with W 5 − ).

8. Concluding Remarks

8.0.0.4. A programme.

By Proposition 7.2, settling Question 1.1 for all graphs on at most eight vertices amounts to settling the families attached to eleven cores. For the six cores that are not Ramsey size-linear, the question is whether subdividing edges of such a core, just enough to bring m 2 down to 2, always yields Ramsey size-linear graphs; K 4 * and W 5 − are the smallest instances. For the five cores with m 2 = 2 the question concerns the cores themselves, and for K 3 , 3 it requires R ( K 3 , 3 , K n ) = O ( n 2 ) . Testing each of the 49 graphs against the three configurations of Proposition 6.2(c) separately, with the dead edges declared live or not, shows how far the method is from each of them. For 45 graphs (all families except that of K 4 ) none of the three extension classes applies even when every edge is live, so a new structure is needed. For K 4 * and three other graphs with core K 4 the obstruction is the configuration c 3 , even with all its edges live. For one graph on eight vertices, H 3 with a triangle glued along each end edge of its subdivision path (graph6 GJyGcc), the only obstruction is the dead edge of c 3 ; in the notation of [5, Case 3], it is present in Γ unless the set U of tips induces a triangle-free graph all of whose edges have codegree at most seven.

Short cycles in links.

For a vertex a let L a = G + [ N + ( a ) ] be its link in G + ; by (1) it has minimum degree at least C 0 . If L a contains a cycle of length k ∈ { 3 , 4 , 5 } , then a together with this cycle spans a wheel W k = K 1 + C k (with W 3 = K 4 ) all of whose edges lie in G + , and Lemma 6.1 applies to it. Testing the 49 minimal unresolved graphs against the extension classes of W 3 , W 4 , W 5 gives the following.
  • If some link contains a cycle of length at most five, whichever length it is, then Γ contains GJyGcc. Equivalently, if Γ does not contain GJyGcc, then every link has girth at least six; this can also be checked by hand (a C 3 in L a gives a K 4 in G + ; a C 4 gives two tips of a diamond in G + with a third common neighbour; a C 5 gives the required path between the tips).
  • If some link contains a C 4 or a C 5 , then Γ contains W 5 − , 19 further graphs with core W 4 , and GJyGcc.
  • If some link contains a C 3 or a C 4 , then Γ contains K 4 * , GJyGcc and two further graphs with core K 4 .
In the quotients of A ˜ 2 -buildings of Remark 8.3 every link is the incidence graph of a projective plane and has girth six, so none of these hypotheses follows from (1) alone; a proof would have to use [5, Claim 4.1]. For K 4 * the third item is little more than a reformulation, since every neighbourhood in a K 4 * -free graph is C 4 -free; for W 5 − and GJyGcc it is a genuine reduction.
Question 8.1.
Let Γ be as in Section 6. Must some link L a contain a cycle of length at most five? Must some link contain a cycle of length four or five?
A positive answer to the second part would show that W 5 − is Ramsey size-linear and hence, by Proposition 1.4, that W 5 is an explicit minimally non-Ramsey size-linear graph.

8.0.0.6. The graph W 5 − .

By Proposition 1.4, deciding whether W 5 − is Ramsey size-linear would, in either direction, produce an explicit minimally non-Ramsey size-linear graph other than K 4 : W 5 if the answer is positive, and W 5 − itself (together with a negative answer to Question 1.1) otherwise. The same is true for K 4 * , but K 4 * has resisted several attempts [2,5,12], and W 5 − , whose rim is longer, may be more accessible. Natural intermediate steps, in analogy with [5], are the following.
Question 8.2.
Is R ( W 5 − , F ) = O ( e ( F ) ) for every bipartite graph F without isolated vertices? Is R ( W 5 − , K n ) = O ( n 2 ) ?
The general bounds of [5] give R ( W 5 − , K n ) = O ( n 3 ) .
Remark 8.3
(Limits of the method; sketch). The only property of G used in the proof of Theorem 1.2 is that G-free graphs have O ( e ) triangles. This fails for K 4 (consider complete tripartite graphs) and, less obviously, for W 5 − . Let Δ be the Bruhat–Tits building of PGL 3 ( F q ( ( t ) ) ) . Its vertex links are point–line incidence graphs of the projective plane PG ( 2 , q )  [17], so every edge of its 1-skeleton lies in exactly q + 1 triangles and every neighbourhood induces a bipartite graph of girth six. Suppose Δ contained W 5 − , with hub c, rim path u 1 u 2 u 3 u 4 in the neighbourhood of c, and a further common neighbour w ≠ c of u 1 and u 4 . By girth six, u 1 and u 4 are at distance three in the link of c, i.e., opposite. In the CAT(0) metric of Δ [6], where all triangles are equilateral with side one, the path u 1 c u 4 is then a geodesic of length 2, and u 1 w u 4 would be a second geodesic of the same length between the same points, contradicting the uniqueness of geodesics. Cocompact lattices in PGL 3 ( F q ( ( t ) ) ) exist (see e.g., [8]) and are residually finite, being finitely generated linear groups; hence Δ has finite quotients in which every ball of radius two is isomorphic to a ball of Δ. Their 1-skeleta are finite W 5 − -free graphs with T / e = ( q + 1 ) / 3 . Thus proving that W 5 − is Ramsey size-linear requires more than triangle counting.
Question 8.4.
For which graphs G is there a constant λ G such that every G-free graph Γ satisfies T ( Γ ) ≤ λ G e ( Γ ) ? By Lemma 4.1 this holds when G has treewidth at most two. Does it fail for every graph with a K 4 -minor?

Constants.

The constant 624 h in Theorem 1.2 is far from optimal; for G = K 3 the truth is 2 e ( H ) + 1 . It would be interesting to determine the order of magnitude of the best constant for 2-trees on h vertices.

Supplementary Materials

The following supporting information can be downloaded at the website of this paper posted on Preprints.org. File S1 (supplementary_material_S1.zip) contains: the Python scripts of the computer search of Section 7 and of the tests of Section 8 (rsl_census.py, bgs_extract.py, case3.py, census_final.py, cores.py, families_final.py, diagnostico.py, wheels.py and export_results.py); the file census_results.csv, which lists all 1403 graphs of the census with the conditions (C1)–(C10) that they satisfy; the expected output of every script; and a file README.txt with instructions.

Funding

This research received no external funding.

Data Availability Statement

All data of this paper are contained in or produced by Supplementary File S1 (see Supplementary materials). The scripts require Python 3 and NetworkX, and reproduce Table 1, Proposition 7.2, the analysis of density-critical graphs, the tests of Section 8 and the lists of Appendix A.

Conflicts of Interest

The author declares no conflicts of interest.

Use of artificial intelligence tools

This work was carried out with the assistance of the large language model Claude (Anthropic). The tool was used for literature search, for proposing and checking proofs, for writing and running the Python code of the computer search in Section 7 and of the tests in Section 8, and for drafting the text of the manuscript. The author independently checked the proofs of Lemmas 3.1 and 4.1 and is responsible for the content of the manuscript.

Appendix A. Minimal Unresolved Graphs on Seven and Eight Vertices

The graphs are given in graph6 format, as produced by NetworkX.
7 vertices (10 graphs).
Fhf_g     FheoW     FhEKw     FhEMg     FhdQW     FMjDO
FhEJW     FMohg     FlBHo     FhUk_
8 vertices (35 graphs).
G[EoIS    GxUA?k    GxUA?[    GeoJ@g    Gewa?k    GxSICK
GxSQCK    GEtBDG    GjCHSg    GjCHSK    G`DbKW    GhogKc
GFwcAK    GxOYCc    GxOYCS    GxSAKW    GhT@Kg    Ggogl_
GxOWSK    GHt@Kg    GHFEKW    GhFKBC    GhFK@c    GxU?Gs
GHhGm_    GFw_MC    GhEKcc    GhdWbC    GhUgMC    GhUgLC
GhdYCS    GJyGcc    GJyGcK    GMs`KK    GhELQg

References

  1. Alon, N.; Krivelevich, M.; Sudakov, B. Turán numbers of bipartite graphs and related Ramsey-type questions. Comb. Probab. Comput. 2003, 12, 477–494. [Google Scholar] [CrossRef]
  2. Balister, P. N.; Schelp, R. H.; Simonovits, M. A note on Ramsey size-linear graphs. J. Graph Theory 2002, 39, 1–5. [Google Scholar] [CrossRef]
  3. Bloom, T. F. Erdős Problems, https://www.erdosproblems.com, Problems #79 and #566–#570. Accessed. (accessed on September 2026).
  4. Bodlaender, H. L. A partial k-arboretum of graphs with bounded treewidth. Theor. Comput. Sci. 1998, 209, 1–45. [Google Scholar] [CrossRef]
  5. Bradač, D.; Gishboliner, L.; Sudakov, B. On Ramsey size-linear graphs and related questions. SIAM J. Discret. Math. 2024, 38, 225–242. [Google Scholar] [CrossRef]
  6. Bridson, M. R.; Haefliger, A. Metric Spaces of Non-Positive Curvature; Springer: Berlin, 1999. [Google Scholar]
  7. Cambie, S.; Freschi, A.; Morawski, P.; Petrova, K.; Pokrovskiy, A. Ramsey number of a cycle versus a graph of a given size. arXiv 2026, arXiv:2601.10238. [Google Scholar]
  8. Cartwright, D. I.; Steger, T. A family of A˜n-groups. Isr. J. Math. 1998, 103, 125–140. [Google Scholar]
  9. Diestel, R. Graph Theory, 5th edition; Springer: Berlin, 2017. [Google Scholar]
  10. Duffin, R. J. Topology of series-parallel networks. J. Math. Anal. Appl. 1965, 10, 303–318. [Google Scholar] [CrossRef]
  11. Erdős, P. Some of my favourite problems in number theory, combinatorics, and geometry. Resenhas 1995, 2, 165–186. [Google Scholar]
  12. Erdős, P.; Faudree, R. J.; Rousseau, C. C.; Schelp, R. H. Ramsey size linear graphs. Comb. Probab. Comput. 1993, 2, 389–399. [Google Scholar] [CrossRef]
  13. Füredi, Z. On a Turán type problem of Erdős. Combinatorica 1991, 11, 75–79. [Google Scholar]
  14. Goddard, W.; Kleitman, D. J. An upper bound for the Ramsey numbers r(K3,G). Discret. Math. 1994, 125, 177–182. [Google Scholar] [CrossRef]
  15. Hng, E. K.; Ji, M.; Lamaison, A. Ramsey size linear and generalization. arXiv 2026, arXiv:2603.25453. [Google Scholar]
  16. Janzer, O. Disproof of a conjecture of Erdős and Simonovits on the Turán number of graphs with minimum degree 3. arXiv 2021, arXiv:2109.06110. [Google Scholar]
  17. Ronan, M. Lectures on Buildings; Academic Press: Boston, 1989. [Google Scholar]
  18. Sidorenko, A. F. The Ramsey number of an N-edge graph versus triangle is at most 2N+1. J. Comb. Theory Ser. B 1993, 58, 185–196. [Google Scholar] [CrossRef]
  19. Spencer, J. Asymptotic lower bounds for Ramsey functions. Discret. Math. 1977, 20, 69–76. [Google Scholar] [CrossRef]
  20. Wigderson, Y. Infinitely many minimally non-Ramsey size-linear graphs. Eur. J. Comb. 2025, 128, 104175. [Google Scholar] [CrossRef]
Figure 1. The graphs of Proposition 1.4(d), and the two remaining minimal unresolved graphs on six vertices. K 4 * , W 5 − , the prism and K 3 , 3 are the minimal unresolved graphs on at most six vertices (Section 7); W 4 and W 5 are not Ramsey size-linear.
Figure 1. The graphs of Proposition 1.4(d), and the two remaining minimal unresolved graphs on six vertices. K 4 * , W 5 − , the prism and K 3 , 3 are the minimal unresolved graphs on at most six vertices (Section 7); W 4 and W 5 are not Ramsey size-linear.
Preprints 234630 g001
Table 1. 2-connected graphs with m 2 ≤ 2 on v ≤ 8 vertices. “Earlier results” means (C1), (C2) and (C4)–(C8); the next two columns count the graphs resolved in addition by Theorem 1.2 and then by Corollary 6.3.
Table 1. 2-connected graphs with m 2 ≤ 2 on v ≤ 8 vertices. “Earlier results” means (C1), (C2) and (C4)–(C8); the next two columns count the graphs resolved in addition by Theorem 1.2 and then by Corollary 6.3.
v 2-conn., m 2 ≤ 2 earlier results + Theorem 1.2 + Corollary 6.3 unresolved minimal unres.
3 1 1 0 0 0 0
4 2 2 0 0 0 0
5 6 5 0 0 1 1
6 26 15 3 0 8 3
7 144 39 18 14 73 10
8 1224 115 127 139 843 35
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.