To be absolutely certain, you can look up the ingredients of pencil lead -- its not pure graphite, or even a mixture of graphite and clay, buy may contain a number of other substances. You can also consider, the electrodes are only in the water when the alarm goes off, so the duration is short. In my experience, if you use graphite electrodes in a salt solution for days the anode tends to be consumed by some process.