fixed graph.py