cleaned up graph drawing