Cleaned up graphdata.py a little.