Brandon Graham, Eagles agree to three-year extension