writeDotFile(fileName,G)
Writes the code for an inputted graph to be constructed in Graphviz with specified file name.
The object writeDotFile is a method function.