Let $\Gamma$ be a simple graph with $n$ vertices, $e$ edges and largest eigenvalue $\lambda_{max}$. Show that $\lambda_{max} = \frac{2e}{n}$ iff $\Gamma$ is regular.
I've already shown the if part, which is kinda obvious.
For the converse, I have no idea how to prove it. I've already checked in the internet and even here in MathStackExchange but found almost no clue, and the clue that I found was not useful at all (I will put a link to it). Can someone give me a really useful hint?
Do I need any deep knowledge in Linear Algebra that I don't know because I had not been taught?
I'm currently taking a course in Combinatorics, in a master's degree, and this is part of a suggested exercise by the Professor after a class.
By Rayleigh-Ritz, the maximum eigenvalue satisfies:
$$\lambda_1 = \max \frac{v^T A v}{v^T v}.$$
Now, consider the vector $\mathbb{1}$ of all $1.$ Then, $$\mathbb{1}^t A \mathbb{1}=$\frac1n \sum_{j, j} A_{ij} = \frac{2e}n,$$ so $\lambda_1 \geq \frac{2e}n$ (which is the average degree). We have equality if and only if $\mathbb{1}$ is an eigenvector, which means that the graph is regular (notice that a non-negative matrix has at most one non-negative eigenvector).