Electrolysis is something entirely different. The reaction you're thinking of is called a Galvanic reaction, named after Luigi Galvani. The process of galvanisation is named after him.
When dissimilar metals are in contact with one another in the presence of an electrolyte, galvanic action occurs, resulting in the deterioration of the metal with the lower galvanic number. The electrolyte may be rain water running from one surface to another, or moisture from the air containing enough acid to cause it to act as an electrolyte. Since copper has one of the highest galvanic numbers or nobility of the active metals, it will not be harmed by contact with any of them. It will, however, cause corrosion of the other metals if in direct contact.
Anyway, graphite has a very high galvanic number, so it won't corrode in the presence of almost anything.
Read the third post, ch427 is on the right track too.