/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/importFormalConjecturesUtil
Let $G$ be a graph on $n$ vertices with diameter $2$ such that deleting any edge increases the
diameter. Is it true that $G$ has at most $\lfloor n^2 / 4 \rfloor$ edges? Equality is conjectured
to hold for the complete balanced bipartite graph $K_{\lceil n/2 \rceil, \lfloor n/2 \rfloor}$.
The conjecture is resolved up to a finite check: Fan [Fa87] verified it for $n \leq 24$ and
$n = 26$, and Füredi [Fü92] proved it for all sufficiently large $n$.
The complete bipartite graph $K_{a, b}$ has exactly $a \cdot b$ edges. The bound
$\lfloor n^2 / 4 \rfloor$ in the Murty-Simon conjecture is attained by the balanced
case $K_{\lceil n/2 \rceil, \lfloor n/2 \rfloor}$.
All goals completed! 🐙namespacevariants
Plesník [Pl75] proved the bound $|E(G)| < 3n(n-1)/8$ for any diameter-$2$-critical graph
on $n$ vertices.
Füredi [Fü92] proved the Murty-Simon conjecture for all sufficiently large $n$, that is, there
exists $n_0$ such that every diameter-$2$-critical graph on $n \geq n_0$ vertices has at most
$\lfloor n^2 / 4 \rfloor$ edges.