Add support for changing graph.