Updated GraphViz for Linux and Mac graph tests.

I updated the GraphViz tests so it compares DOT files line-by-line and checks if graphs are output correctly for other extensions.