In graphite, only three of the four valence electrons of each carbon atom are involved in bonding. This free electron can easily move from one carbon atom to another carbon atom under the influence of applied potential. So this free electron is responsible for the conduction of heat and electricity.
Is graphite a good conductor of heat or electricity?
Each carbon of graphite has one free electron which makes it a good conductor of heat and electricity.