Basically, the machining is done on a lathe. Since carbon is a material that chips easily, we can achieve chip-free machining by using special jigs under machining conditions that are different from those of hard metals and are suitable for carbon.
Related link:
About Graphite and Carbon Machining