I researched about the spectral radius and was confused. There are two definitions.
The spectral radius of a finite graph is defined to be the spectral radius of its adjacency matrix. the spectral radius of a square matrix is the largest absolute value of its eigenvalues.
The largest eigenvalue in the spectrum of a graph is the spectral radius of a graph.
When they are equivalent? If the graph is connected, these definitions are equivalent?
Thanks for the help.
By the Perron–Frobenius theorem:
The second case applies in particular to adjacency matrices of graphs. (Also, these are symmetric, so all their eigenvalues are real). So the spectral radius is $r$, and it is both the largest eigenvalue, and the largest absolute value of an eigenvalue: your definitions are equivalent.
As a bonus, if the graph is connected, then the adjacency matrix is an irreducible matrix, and the Perron–Frobenius theorem additionally tells us that the eigenvalue $r$ is simple (it only appears once, both algebraically and geometrically). But we don't need the graph to be connected for the definitions to be equivalent.