in previous commit graph.py is courropted and Im toolazy to rever back in git so here is the new one! sorry :P