Simple graph cleanup