Let $A$ be real a positive semidefinite matrix of dimension $n$ and with $1$s on the diagonal. Those matrices are sometimes referred to as correlation matrices. From the positivity of the minors, we know that each matrix element $a_{ij}$ satisfies $-1 \leq a_{ij} \leq 1$. The problem is the following: considering that some fixed off-diagonal elements are zero, what is the maximal possible largest eigenvalue $\lambda_1$ of $A$?
Remark: since $\lambda_1(A) \leq \lambda_1(|A|)$, where $|A|$ is the entry-wise absolute value of $A$, we can restrict ourselves to $0\leq a_{ij} \leq 1$.
As an example, let’s take
$$ A= \begin{pmatrix} 1 & a_{12} & 0 & 0 \\ a_{12} & 1 & a_{23} & 0 \\ 0 & a_{23} & 1 & a_{34} \\ 0 & 0 & a_{34} & 1 \end{pmatrix}. $$
From numerical optimisation, I know that the maximal largest eigenvalue reachable with the constraint that $A$ is positive semidefinite is $2$. This is obtained e.g. by taking $a_{12}=a_{34}=1$ and $a_{23}=0$. Furthermore, if we did not have the PSD constraint, the maximum would always be reached at an extreme point (i.e., at some attribution of $0$ or $1$ to each entry and in this case, $1$ everywhere). My intuition is that this is still true for PSD matrices, i.e., it would be attained by a PSD $\{0,1\}$-matrix. Note that the only PSD $\{0,1\}$-matrices are block-diagonal matrices with blocks consisting of only ones (up to some permutation).
Is there a way to prove this, without using the explicit from of the eigenvalues, which can become very cumbersome for general matrices?