WorksMathematics
A counterexample to a conjecture of Graffiti.pc on the forest number
Abstract
Conjecture 66 of Graffiti.pc bounds the order of a largest induced forest of a connected graph from below by the even mode of the degrees of its complement divided by its average degree. We show that it is false, under every reading of its definitions and by an unbounded margin.
Introduction
Graffiti.pc is a program written by DeLaViña [3] after Fajtlowicz’s Graffiti [5]; it proposes inequalities between graph invariants that hold on its database of graphs. DeLaViña’s list Written on the Wall II [4] records its conjectures with their status. Conjecture 66, generated on 25 March 2004, is still marked as open (in the version of 26 July 2026). This note shows that it is false. The proofs are by hand; as in [2], every finite statement is also re-checked by computer, and the counterexamples are also confirmed in the Lean proof assistant (§ 3 and Appendix § 4).
All graphs are finite and simple. For a graph with vertices and edges, is the average degree and the complement, in which a vertex of degree in has degree . The forest number is the largest number of vertices of an induced subgraph of that is a forest. The list defines the even mode of a graph as “the most frequently occurring degree that is an even integer”, with the smallest one when several are equally frequent. We write for this number: among the even values in the degree sequence of , the most frequent one, and the smallest of these in case of a tie. Conjecture 66 reads as follows in [4].
Conjecture 66. If is a simple connected graph, then
The definition of the even mode also admits a second reading: the smallest even value among the most frequent degrees, defined only when some most frequent degree is even. And while the statement uses , the definitions that the list attaches to it are those of , the even mode, the complement, the average degree, and the floor function . The list also records that in 2008 all 11,716,571 connected graphs with 10 vertices were added to the database of Graffiti.pc (see its notes to Conjectures 42 and 187). We show in § 3 that the printed conjecture fails on seven of these graphs, while the version with holds on all of them; so the floor may well be what the program meant. We therefore treat all four readings.
For let be the graph made of disjoint copies of the complete graph , with vertices in , together with the edges for (Figure 1.1).

Figure 1.1. The graph : copies of , each drawn as a tetrahedron, joined by the edges . The shaded vertices induce a forest of order .
Theorem 1.1. For every , , and the right side of Conjecture 66 for equals with
under both readings of the even mode. Consequently Conjecture 66 fails for if and only if , and the conjecture with in place of fails for if and only if . In both cases the right side exceeds by at least , which tends to infinity.
Theorem 1.2. No connected graph with 2 to 9 vertices violates any of the four readings. Among the 11,716,571 connected graphs with 10 vertices, exactly 7 violate Conjecture 66 as printed, 5 violate it when the even mode is read in the second way, and none violates either reading with $\lfloor\cdot\rfloor.
The smallest member of the family that refutes all four readings, , has 56 vertices. We did not determine the smallest counterexample to the readings with ; the smallest one we found has 37 vertices (Remark 2.2).
The chains of complete graphs
Lemma 2.1. .
Proof. Three vertices of one induce a triangle, so an induced forest contains at most two vertices of each ; since the partition the vertex set, it has at most vertices. The vertices induce disjoint edges, which form a forest.
Lemma 2.2. is connected, has edges, and . It has vertices of degree 3 and vertices of degree 4. In both readings the even mode of equals .
Proof. The copies are connected and consecutive ones are joined by an edge, so is connected; it has edges inside the copies and between them. Every vertex has degree 3 inside its copy, and the endpoints () and () of the joining edges, which are distinct, have one more neighbour. In , which has vertices, the degrees are therefore , which is even, taken times, and , which is odd, taken times. So is the only even degree of , and it is also its most frequent degree, because .
Lemma 2.3. Let and . Then if and only if , and if and only if . For ,
Proof. We have
Since is an integer, if and only if , that is, . Next, if and only if , that is, . The roots of are , which lie in and , so for positive integers this holds exactly when . Finally, for we have and , so , and taking integer parts gives the last claim.
Proof of Theorem 1.1. By Lemma 2.2, under either reading of the even mode,
By Lemma 2.1, Conjecture 66 fails for exactly when , and the version with the floor fails exactly when ; Lemma 2.3 identifies these cases. The difference between the right side and is at least .
For example, has 32 vertices, and , so the printed right side is 18. For , with 56 vertices, and , so the right side is 32 with and 30 with $\lfloor\cdot\rfloor.
Remark 2.1. The family is close to extremal in the following sense. Alon, Kahn and Seymour [1] proved that , with equality for disjoint unions of complete graphs. For a connected graph whose degrees are all close to , the right side of Conjecture 66 is at most about while is at least about ; a counterexample therefore needs the near-equality of disjoint cliques, a large even mode of the complement, and few extra edges to make the graph connected. The chains have all three.
Remark 2.2. Let be the graph made of 12 disjoint triangles , the 11 edges , and one pendant vertex attached to . It has 37 vertices and 48 edges, (at most two vertices of each triangle, and the pendant vertex), and the only even degree of is 34, taken by the 13 vertices of degree 2 in . With the first reading of the even mode, , so the right side is 26 with and 28 with . The most frequent degree of is the odd number 33, so says nothing about the second reading.
Small graphs
Let be the graph obtained from a triangle and a complete graph on by adding the edge and three pendant vertices , with adjacent to (Figure 3.1).

Figure 3.1. The graph . The shaded vertices induce a forest of order .
Proposition 3.1. is a counterexample to Conjecture 66 as printed, under both readings of the even mode: , while the right side is 8.
Proof. An induced forest contains at most two vertices of the triangle, at most two of the , and the three pendant vertices, so ; the seven shaded vertices in Figure 3.1 induce the forest , , . The degrees of are 5 (), 4 (), 3 (), 2 () and 1 (); so , , and the degrees of are 4, 5, 5, 6, 6, 7, 7, 8, 8, 8. The value 8 occurs three times and every other value at most twice, so it is the even mode under both readings, and the right side is .
With the right side for is , and the inequality holds.
Theorem 1.2 comes from an exhaustive search. The connected graphs with at most 10 vertices were generated with geng from nauty [7], and for each of them the four right sides were computed in integer arithmetic (the quotient equals ) and compared with the forest number, computed by branch and bound over vertex subsets. Table 3.1 gives the results. The seven counterexamples with 10 vertices all have 13 edges, three pendant vertices and forest number 7; their graph6 codes are I?ACJ@PqW (this is ), I?AACJafO, I?AACIdu_, I?AADJAfO, I?AADHQbW, I?ABAeKOw and I?`CR@PoW, and the last two violate only the first reading of the even mode.
| graphs | first, | second, | first, | second, | |
| 2–8 | 12,112 | 0 | 0 | 0 | 0 |
| 9 | 261,080 | 0 | 0 | 0 | 0 |
| 10 | 11,716,571 | 7 | 5 | 0 | 0 |
Table 3.1. Counterexamples among the connected graphs with vertices. A dash means that no graph of that order has an even mode under the reading, or none violates it; the readings are the even mode as defined (first) or as the smallest even most frequent degree (second), each with or .
Verification
The proofs above use no computation. The computer checks the finite claims and the search of § 3, independently in C, C++, Bash, Python, Julia and Lean; all files are in the repository listed under Data and code availability, where scripts/run_all.sh runs them.
C.
wowii66.cperforms the search of § 3 on graph6 input, and for builds and checks Lemmas 2.1–2.3: the degrees, the even modes and both right sides, the partition into cliques and the explicit forest of order , and by branch and bound for .
C++.
wowii66.cpprepeats both computations with no shared code and a different method for (a greedy lower bound, and an exact value over all vertex subsets only when that bound is below the right side). Its output for all connected graphs with at most 10 vertices is identical, line for line, to that of the C program.
Bash (shell integer arithmetic only): , with over all 1024 vertex subsets; for ; and the inequalities of Lemma 2.3 for .
Python (exact rational arithmetic): and the seven graphs of Table 3.1, with over all vertex subsets and a colour-refinement check that the seven are pairwise non-isomorphic; every labelled connected graph with at most 6 vertices; for , with over all subsets for ; and the inequalities of Lemma 2.3 for .
Julia (exact rational arithmetic): the same graphs, for , and over all vertex subsets for .
Lean 4 [8]: a self-contained file without Mathlib computes, in the kernel, every quantity of Proposition 3.1 from the edge list of , including over all 1024 vertex subsets, and proves that Conjecture 66 fails for under both readings; the proof depends only on the axiom propext.
Lean 4 with Mathlib [6]: a second file defines the forest number, both readings of the even mode and the average degree for every finite simple graph, and proves for every that is connected, that , the degrees of , both even modes and both right sides. It concludes that violates Conjecture 66 under both readings for every , and the version with for every . The proof uses only the standard axioms propext, Classical.choice and Quot.sound.
Declarations
Funding. No funding was received for conducting this study.
Competing interests. The author has no competing interests to declare that are relevant to the content of this article.
Data and code availability. The programs, their outputs and the Lean files are available at https://github.com/creelie/eConjectureWOWII66 and archived on Zenodo, https://doi.org/10.5281/zenodo.23254096.
Use of generative AI. The author used Claude (Anthropic) for programming, computation and drafting; the author checked the mathematics and takes full responsibility for the content.
References
- [1]N. Alon, J. Kahn, P. D. Seymour, Large induced degenerate subgraphs, Graphs Combin. 3 (1987) 203–211.DOI
- [2]D. Bhattacharjee, P. Mandal, U. Bhattacharya, Resolving Erdős–Ulam monochromatic union-closed family conjectures, preprint (2026), arXiv:2610.02833.
- [3]E. DeLaViña, Graffiti.pc: a variant of Graffiti, In: Graphs and Discovery, DIMACS Ser. Discrete Math. Theoret. Comput. Sci. 69, Amer. Math. Soc., Providence, 2005, pp. 71–79.
- [4]E. DeLaViña, Written on the Wall II (conjectures of Graffiti.pc), http://cms.uhd.edu/faculty/delavinae/research/wowII/; version of 26 July 2026 archived at https://web.archive.org/web/20260726061534/http://cms.uhd.edu/faculty/delavinae/research/wowII/all.html.
- [5]S. Fajtlowicz, On conjectures of Graffiti, Discrete Math. 72 (1988) 113–118.
- [6]The matlab Community, The Lean mathematical library, In: Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, ACM, New York, 2020, pp. 367–381.
- [7]B. D. McKay, A. Piperno, Practical graph isomorphism, II, J. Symbolic Comput. 60 (2014) 94–112.
- [8]L. de Moura, S. Ullrich, The Lean 4 theorem prover and programming language, In: Automated Deduction – CADE 28, Lecture Notes in Comput. Sci. 12699, Springer, Cham, 2021, pp. 625–635.DOI