The edit distance of word-representable and comparability graphs
Pith reviewed 2026-05-20 09:21 UTC · model grok-4.3
The pith
Any n-vertex graph can be turned into a word-representable graph by changing at most about n squared over eight edges.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The authors establish that the maximum edit distance of an n-vertex graph from the hereditary property of word-representable graphs is n squared over eight minus o of n squared. They fully determine the edit distance function over all edge densities p in the unit interval for word-representable graphs, for k-word-representable graphs with k at least two, and for comparability graphs, where the latter requires an infinite sequence of colored regularity graphs.
What carries the argument
The edit distance function over all edge densities p in [0,1], obtained by analyzing colored regularity graphs that capture the extremal densities for each hereditary property.
If this is right
- The bound n squared over eight is asymptotically tight for word-representable graphs.
- The same method produces explicit functions for every fixed k greater than or equal to two in the k-word-representable case.
- Comparability graphs require infinitely many regularity graphs to describe their full range of densities.
- The o of n squared error term vanishes in the limit for both properties.
Where Pith is reading between the lines
- Word-representable graphs appear to occupy a larger fraction of the space of all graphs than comparability graphs do, measured by edit distance.
- The regularity-graph technique may apply directly to other hereditary classes whose forbidden subgraphs admit a similar density description.
- Explicit constructions achieving the n squared over eight bound could be extracted from the regularity graphs used in the proof.
- The results suggest a possible link between edit distance and the representation number or dimension of the underlying poset or word.
Load-bearing premise
The edit distance function for comparability graphs can be captured completely by an infinite sequence of colored regularity graphs that together cover every density p in the unit interval.
What would settle it
A family of n-vertex graphs whose edit distance to the nearest word-representable graph exceeds n squared over eight by more than a sub-quadratic term would disprove the stated maximum.
Figures
read the original abstract
In this paper, we establish that the maximum edit distance of an $n$-vertex graph from the hereditary property of word-representable graphs is $n^2/8-o(n^2)$. In addition, we establish that the maximum edit distance of an $n$-vertex graph from the hereditary property of poset comparability graphs is $5n^2/32-o(n^2)$. In fact, we determine the edit distance function over all edge densities $p\in [0,1]$ for the property of word-representable graphs, for the property of $k$-word-representable graphs for each $k\geq 2$, and for the property comparability graphs. The latter has a peculiar structure that requires an infinite sequence of colored regularity graphs.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper determines the edit distance functions for the hereditary properties of word-representable graphs, k-word-representable graphs (k≥2), and comparability graphs. It establishes that the maximum edit distance from the class of word-representable graphs is n²/8−o(n²), and from comparability graphs is 5n²/32−o(n²). The functions are given explicitly for every edge density p∈[0,1], with upper and lower bounds obtained via graphon and regularity constructions; the comparability case requires an infinite sequence of colored regularity graphs.
Significance. If the constructions and matching bounds hold, the results are significant because they supply closed-form edit-distance functions for two natural hereditary classes, including an explicit maximum and the full p-dependent function. The explicit treatment of the infinite colored-regularity sequence for comparability graphs is a technical contribution that still yields a well-defined, attainable function with maximum 5/32.
major comments (1)
- [Section describing the colored regularity graphs for comparability graphs] The central claim for comparability graphs rests on the infinite sequence of colored regularity graphs covering all p∈[0,1] and attaining the stated maximum. The manuscript should supply an explicit argument (perhaps in the section presenting the sequence) that the limit of the edit distances over this sequence is continuous on [0,1] and reaches 5/32 at its peak, with no uncovered density intervals.
minor comments (2)
- [Introduction / Main results section] The abstract states the main theorems without proof sketches; the introduction or the section containing the main theorems should include a brief outline of the upper-bound and lower-bound arguments for each class.
- [Preliminaries] Notation for the edit-distance function ed(·,P) and the normalized version should be introduced once and used consistently when stating the p-dependent results.
Simulated Author's Rebuttal
We thank the referee for their positive evaluation of our manuscript and for the constructive major comment. We address the point below and have incorporated the suggested clarification into the revised version.
read point-by-point responses
-
Referee: [Section describing the colored regularity graphs for comparability graphs] The central claim for comparability graphs rests on the infinite sequence of colored regularity graphs covering all p∈[0,1] and attaining the stated maximum. The manuscript should supply an explicit argument (perhaps in the section presenting the sequence) that the limit of the edit distances over this sequence is continuous on [0,1] and reaches 5/32 at its peak, with no uncovered density intervals.
Authors: We agree that an explicit argument for continuity and complete coverage strengthens the presentation. In the revised manuscript we have added a new paragraph immediately following the definition of the infinite sequence of colored regularity graphs. This paragraph proves that the pointwise limit of the associated edit-distance functions is continuous on [0,1], that the supremum of the limit equals 5/32, and that the sequence of densities realized by the graphs is dense in [0,1] with the limiting function filling any potential gaps by linear interpolation between consecutive terms. The argument relies on standard properties of graphon convergence and the explicit formulas for the edit distances of the finite colored graphs in the sequence. revision: yes
Circularity Check
No significant circularity; derivation self-contained via explicit constructions
full rationale
The paper determines the edit distance functions for word-representable graphs, k-word-representable graphs, and comparability graphs by providing matching upper and lower bounds through graphons and regularity constructions. The abstract and described approach establish these functions explicitly over all densities p in [0,1], with the comparability case using an infinite sequence of colored regularity graphs as a technical device to attain a well-defined maximum of 5/32 without reducing any claimed prediction or bound to a fitted parameter, self-definition, or load-bearing self-citation. No equations or steps in the provided context equate outputs to inputs by construction, and the central claims rest on independent combinatorial constructions rather than circular reductions.
Axiom & Free-Parameter Ledger
Reference graph
Works this paper leans on
-
[1]
Noga Alon, Eldar Fischer, Michael Krivelevich, and M´ ari´ o Szegedy, Efficient testing of large graphs.Combinatorica20(2000), no. 4, 451–476
work page 2000
- [2]
-
[3]
Maria Axenovich, Andr´ e K´ ezdy, and Ryan Martin, On the editing distance of graphs.J. Graph Theory58(2008), no. 2, 123–138
work page 2008
-
[4]
Multicolor and directed edit distance
Maria Axenovich and Ryan R. Martin, Multicolor and directed edit distance. https://arxiv.org/abs/1106.2870, accessed 20 Apr 2026
work page internal anchor Pith review Pith/arXiv arXiv 2026
-
[5]
J´ ozsef Balogh and Ryan Martin, Edit distance and its computation.Electron. J. Combin.15 (2008), no. 1, Research Paper 20, 27 pp
work page 2008
-
[6]
Christopher Cox, Ryan R. Martin, and Daniel McGinnis, Accumulation points of the edit distance function.Discrete Math.345(2022), no. 7, Paper No. 112857, 17pp
work page 2022
-
[7]
Paul Erd˝ os and Alfr´ ed R´ enyi, On random graphs. I.Publ. Math. Debrecen6(1959), 290–297
work page 1959
-
[8]
Tibor Gallai, Transitiv orientierbare Graphen.Acta Math. Acad. Sci. Hungar.18(1967), 25–66
work page 1967
-
[9]
Edgar N. Gilbert, Random graphs.Ann. Math. Statist.30(1959), 1141–1144
work page 1959
-
[10]
Marc Glen, Sergey Kitaev, and Artem Pyatkin, On the representation number of a crown graph.Discrete Appl. Math.244(2018), 89–93
work page 2018
-
[11]
Magn´ us M. Halld´ orsson, Sergey Kitaev, and Artem Pyatkin, Semi-transitive orientations and word-representable graphs.Discrete Appl. Math.201(2016), 164–171
work page 2016
-
[12]
Zion Hefty, Paul Horn, Colby Muir, and Andrew Owens, Word-representation numbers of graphs: Bottlenecks and bounds, J. Combin. Th. Ser. A,223(2026), Paper No. 106215, 25pp
work page 2026
-
[13]
Developments in Language Theory, 36–67
Sergey Kitaev, A comprehensive introduction to the theory of word-representable graphs. Developments in Language Theory, 36–67. Lecture Notes in Comput. Sci.,10396Springer, Cham, 2017
work page 2017
-
[14]
Sergey Kitaev and Artem Pyatkin, On representable graphs.J. Autom. Lang. Comb.13 (2008), no. 1, 45–54
work page 2008
-
[15]
Sergey Kitaev and Steven Seif, Word problem of the Perkins semigroup via directed acyclic graphs.Order25(2008) 3, 177–194
work page 2008
-
[16]
Sergey Kitaev and Vadim Lozin,Words and Graphs, Springer Monographs in Mathematics, Springer, Cham, 2015
work page 2015
-
[17]
Edward Marchant and Andrew Thomason, Extremal graphs and multigraphs with two weighted colours.Fete of combinatorics and computer science, 239–286. Bolyai Soc. Math. Stud.,20J´ anos Bolyai Mathematical Society, Budapest, 2010
work page 2010
-
[18]
Ryan Martin, The edit distance function and symmetrization,Electron. J. Combin.20(2013), no. 3, Paper 26, 25pp
work page 2013
-
[19]
Ryan R. Martin and Alex W.N. Riasanovsky, On the edit distance function of the random graph.Combin. Probab. Comput.31(2022), no. 2, 345–367
work page 2022
-
[20]
Ryan R. Martin, The edit distance in graphs: methods, results, and generalizations.Recent trends in combinatorics, 31–62.IMA Vol. Math. Appl.,159Springer, [Cham], 2016
work page 2016
-
[21]
Chebyshev Polynomial of the First Kind
Weisstein, Eric W. “Chebyshev Polynomial of the First Kind.” From MathWorld–A Wolfram Resource.https://mathworld.wolfram.com/ChebyshevPolynomialoftheFirstKind.html, ac- cessed 14 Apr 2026
work page 2026
-
[22]
Chebyshev Polynomial of the Second Kind
Weisstein, Eric W. “Chebyshev Polynomial of the Second Kind.” From MathWorld–A Wol- fram Resource.https://mathworld.wolfram.com/ChebyshevPolynomialoftheSecondKind.html, accessed 14 Apr 2026. AppendixA.Chebyshev polynomials The Chebyshev polynomials of the first kind (see [21]) obey the identity cos nθ = Tn cosθ . The Chebyshev polynomials of the second ki...
work page 2026
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.