Added command line option to either view or save the graph to a PDF file.