clean up GraphHelper.py