Test graph.py.