  In this paper we address the problem of testing whether two observed trees
$(t,t')$ are sampled either independently or from a joint distribution under
which they are correlated. This problem, which we refer to as correlation
detection in trees, plays a key role in the study of graph alignment for two
correlated random graphs. Motivated by graph alignment, we investigate the
conditions of existence of one-sided tests, i.e. tests which have vanishing
type I error and non-vanishing power in the limit of large tree depth. For the
correlated Galton-Watson model with Poisson offspring of mean $\lambda>0$ and
correlation parameter $s \in (0,1)$, we identify a phase transition in the
limit of large degrees at $s = \sqrt{\alpha}$, where $\alpha \sim 0.3383$ is
Otter's constant. Namely, we prove that no such test exists for $s \leq
\sqrt{\alpha}$, and that such a test exists whenever $s > \sqrt{\alpha}$, for
$\lambda$ large enough. This result sheds new light on the graph alignment
problem in the sparse regime (with $O(1)$ average node degrees) and on the
performance of the MPAlign method studied in Ganassali et al. (2021), Piccioli
et al. (2021), proving in particular the conjecture of Piccioli et al. (2021)
that MPAlign succeeds in the partial recovery task for correlation parameter
$s>\sqrt{\alpha}$ provided the average node degree $\lambda$ is large enough.
As a byproduct, we identify a new family of orthogonal polynomials for the
Poisson-Galton-Watson measure which enjoy remarkable properties. These
polynomials may be of independent interest for a variety of problems involving
graphs, trees or branching processes, beyond the scope of graph alignment.
