gen_graphs takes advantage of changes from previous commit