Add missing import sys in graph.py.