make graph file writing optional

we probably want to add a setter that can provide a filename...
Merge pull request #9 from eddelbuettel/feature/optional-graph-file

make graph file writing optional