save graph stuff