first part of graph.py
graph.py before test
graph.py finished