The relationship between contact network and energy dissipation in granular materials