In Remark 6.3 of their paper on the spectral gap of a quantum graph, Kennedy, Kurasov, Malenová and Mugnolo bound the spectral gap μ₂ of the Kirchhoff Laplacian on a compact metric graph with diameter D and E edges by π²/E² ≤ μ₂D² ≤ 4π²E², and ask for the optimal constants and optimisers for each E. We determine the smallest value exactly for E ≤ 4 and for every E ≥ 7. For E ≥ 7 it is 4[arctan(1/√(2m)) + arctan(1/√(2n))]², with m and n the integers nearest (E−1)/2; the unique optimiser is an edge joining a vertex with m equal loops to a vertex with n equal loops. The proof bounds the inradii of two nodal domains by cutting them into rooted trees and counting their leaves against the edges. The largest value C_E is exact for E ≤ 4 (computer-assisted for E = 4) and satisfies π + log⌊E/10⌋ − 0.27 ≤ √C_E ≤ π + log(E+2) for E ≥ 10: a projection onto a weighted interval with a Prüfer-angle estimate gives the upper bound, and chains of bundles of parallel edges give the lower bound. Every graph also satisfies μ₂D² ≥ 16/(E+9), which is sharp to leading order. For the first eigenvalue λ₁ with Dirichlet conditions on a vertex set and the inradius R, the extreme values of λ₁R² are (1/4+o(1)) log²E and (2+o(1))/E. The upper bounds also hold in terms of the first Betti number and the total length, and for the mean distance ρ, μ₂ρ² has order log²E, attained by Ramanujan graphs.
