separated graph components to graph.py