Example of switching in graphs.html