Added methods for plotting graphs to images and saving them to dot file
format.