Update graphs.py