How can diamond be formed artificially

If graphite is subjected to a high temperature