maybe prints the graph?