EDM is electrical discharge machining. Using either a wire or carbon rod (the rod can be a custom shape) the machine esentially burns a shape into a part. It is capable of very close tolerances in very hard material. Check this link out.
http://www.engineersedge.com/edm.shtml