Localization of dominant eigenpairs and planted communities by means of Frobenius inner products