new graph replaces old graph