Made struct name independent of graph type to print.