Remove any existing state graph before drawing a new one.