Updates graphs_by_category