small changes to graphs and energy