Graphite precipitation of lithium battery