China’s commerce ministry plans to restrict exports of some graphite products in a bid to protect national security.