Graphite is pure carbon (chemical formula C) that cristallyzes in the hexagonal system. Color: black.
Carbides are the combination of carbon with another element, with no presence of oxygen. In the presence of oxygen the substance would be a carbonate instead of a carbide.
Example of carbides:
Calcium carbide (chemical formula Ca2C), used to make acetylene in small workshops.
Silicon carbide (chemical formula SiC), whose commercial registered trademark is Carborundum, used in grinding disks and wheels. Carborundum was a trade brand that belonged to The Carborundum Company, which has been purchased by Saint Gobain (I believe).
Tungsten carbide (chemical formula TgC), used in cutting and drilling tools.
Cr7C3 is chromium carbide, the one that appears when stainless steel passes through the sensitizing temperature, originating intergranular corrosion.
High speed steel is a high carbon steel, with a carbon content of 1 - 1,2%. Extremely hard but fragile, that's why it breaks easily when used in machining tools, which makes machinists to get upset.
There's no element whose formula is M, as you indicate. Check whether it's not Mo (molybdenum) or Mn (manganese)
Giovanni S. Crisi
Sao Paulo - Brazil