Refactored the code so that it finally supports toggling between two graphs.  Now to get some animation to work between them