\documentclass[10pt]{article} \usepackage[margin=0.75in]{geometry} \usepackage{amsmath,amssymb,amsthm} \usepackage[hidelinks]{hyperref} \usepackage[small,compact]{titlesec} \emergencystretch=1em \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \title{Contracting a pendant edge can increase the mean subtree order} \author{Alexander M. Kramer\thanks{Independent Researcher. \texttt{akramer.alex@gmail.com}. The construction, proof and text were developed with large language models (Anthropic Claude and OpenAI Codex) under the author's direction, and the author checked and revised the argument and text.}} \date{\today} \begin{document} \maketitle \begin{abstract} Cambie, Jooken and Wagner conjectured that contracting an edge of a connected graph decreases the mean subtree order by at least $1/3$, as it does for trees. We construct unicyclic graphs of order $n$ and maximum degree $3$ in which contracting a pendant edge increases the mean subtree order by $n/450+O(1)$, disproving the conjecture. In this family the bound first fails at $481$ vertices and contraction first increases the mean at $631$ vertices. \end{abstract} \section{Introduction} Throughout this paper, we consider finite, simple and connected graphs. A subtree of a graph $G$ is a subgraph of $G$ that is a tree, not necessarily induced (single vertices included). Let $N(G)$ be the number of subtrees of $G$ and $R(G)$ the total order of all subtrees of $G$, that is, the sum of their orders (numbers of vertices). The mean subtree order of $G$ is $\mu(G)=R(G)/N(G)$, and the local mean $\mu(G,v)$ at a vertex $v$ is the average order of the subtrees containing $v$. For an edge $e$, $G/e$ denotes the graph obtained from $G$ by contracting $e$. The mean subtree order of trees was introduced by Jamison \cite{J83}, who later conjectured \cite[Conj.~5.6]{J84} that $\mu(T)-\mu(T/e)\geq1/3$ for every edge $e$ of every tree $T$. Luo, Xu, Wagner and Wang \cite{LXWW23} proved this for pendant edges and Wang \cite{W24} in general. Cambie, Jooken and Wagner \cite[Conj.~1.8]{CJW} conjectured that $\mu(G)-\mu(G/e)\geq1/3$ for every edge $e$ of every connected graph $G$, with equality if and only if $G$ is a path. We show that the conjecture fails even for pendant edges of unicyclic graphs with maximum degree $3$. For an integer $t\geq1$, let $H_t$ be the graph obtained from the cycle labelled $0,1,\ldots,8t-1$ in cyclic order by joining one end of a path on $t$ new vertices to vertex $0$, and one end of another such path to vertex $2t$. We call $0$ and $2t$ the attachment vertices and the two paths the attached paths. Let $v$ be the vertex $t$, and let $G_t$ be obtained from $H_t$ by adding a new vertex $w$ adjacent to $v$. Both graphs are unicyclic with maximum degree $3$, $G_t$ has order $n=10t+1$, and $G_t/vw=H_t$ because $w$ is a leaf. \begin{theorem}\label{thm:main} As $t\to\infty$, \[ \mu(G_t)-\mu(G_t/vw)=-\frac{t}{45}+O(1)=-\frac{n}{450}+O(1). \] The smallest $t$ with $\mu(G_t)-\mu(G_t/vw)<1/3$ is $t=48$, and the smallest $t$ with $\mu(G_t)<\mu(G_t/vw)$ is $t=63$, where $n=631$ and \[ \mu(G_{63})-\mu(G_{63}/vw)=-\frac{4293783638}{49101085318287}. \] \end{theorem} The graph $H_t$ is a variant of the graph $DB^{\star1}_{n,w}$ in the proof of \cite[Prop.~5.1]{CJW}, with the attachment vertices at distance $2t$ instead of $2$ and paths in place of sets of leaves. For sufficiently large $t$, the local mean $\mu(H_t,v)$ lies below $\mu(H_t)$ by an amount linear in $t$, which cannot happen in a tree \cite{J83}. Adding $w$ then lowers the mean, so contracting $vw$ raises it. \section{Proof of Theorem~\ref{thm:main}} \begin{lemma}\label{lem:gaps} Let $M$ be a set of $j\geq1$ vertices of the cycle $C_m$, and let $d_1,\ldots,d_j$ be the numbers of edges on the arcs of $C_m$ between consecutive vertices of $M$ (so $d_1=m$ if $j=1$). The subtrees of $C_m$ are its paths, the $m$ spanning paths being distinct. The number $Q$ and the total order $S$ of the subtrees of $C_m$ containing $M$ are \[ Q=m+\sum_{i=1}^{j}\binom{d_i}{2},\qquad S=mQ-\sum_{i=1}^{j}\binom{d_i+1}{3}. \] For $M=\emptyset$, $Q=m^2$ and $S=m^2(m+1)/2$. \end{lemma} \begin{proof} A subtree of $C_m$ containing $M$ is one of the $m$ spanning paths, or it omits a nonempty interval of vertices not in $M$, which lies inside one arc. An arc of length $d_i$ has $d_i-1$ interior vertices, hence $\binom{d_i}{2}$ such intervals, and their numbers of vertices sum to $\sum_{\ell=1}^{d_i-1}\ell(d_i-\ell)=\binom{d_i+1}{3}$. For $M=\emptyset$ there are $m$ paths of each order $\ell\mu(H_t)$ for $t\leq62$. At $t=63$ the polynomials give $N(H_{63})=332352216$, $R(H_{63})=148441475868$, $N(G_{63})=645320026$ and $R(G_{63})=288225062749$, and the difference of means is the fraction in Theorem~\ref{thm:main}. \end{proof} \begin{thebibliography}{9}\small\setlength{\itemsep}{0pt} \bibitem{CJW} S.~Cambie, J.~Jooken and S.~Wagner, On the extrema of the mean subtree order of graphs, arXiv:2508.20593 (2025), version 2 (2026). \bibitem{J83} R.~E.~Jamison, On the average number of nodes in a subtree of a tree, J. Combin. Theory Ser. B 35 (1983), 207--223. \bibitem{J84} R.~E.~Jamison, Monotonicity of the mean order of subtrees, J. Combin. Theory Ser. B 37 (1984), 70--78. \bibitem{LXWW23} Z.~Luo, K.~Xu, S.~Wagner and H.~Wang, On the mean subtree order of trees under edge contraction, J. Graph Theory 102 (2023), 535--551. \bibitem{W24} R.~Wang, On the difference of mean subtree orders under edge contraction, J. Combin. Theory Ser. B 169 (2024), 45--62. \end{thebibliography} \end{document}