You are saying that carbon compounds does not conduct electricity, then how do graphite conduct electricity?
Kindly refer to the link given below for an answer to a similar query :
https://www.meritnation.com/ask-answer/question/how-can-graphite-conduct-electricity-what-is-graphite/materials-metals-and-non-metals/2590484
https://www.meritnation.com/ask-answer/question/how-can-graphite-conduct-electricity-what-is-graphite/materials-metals-and-non-metals/2590484