In graphite, there is one electron in the outer shell which is not involved in bonding, so this becomes delocalised. Instead, the dilocalised electrons in graphite is free to move through the structure so graphite conducts electricity even though it's not metal.