Came to a less-than-optimal method for updating the graph