clean up graph with proper tabbing