improve_graph_add