Reset the graph plotter internals when HEAD has changed.