Changing Example and apply undirected graphs