Still have a bug. Probably need to return the graph.