Add cost graph.