graph switching