Clean up graphs