Phonon energy inversion in graphene during transient thermal transport