Updating state graph.