Add GraphByType as an alternative to Graph. Type of Graph is given as the 2nd variable, which then calls a method of this name. Should make things more flexible in iterative situations