switch on graph