added ability to write dot files for discrete graphs
Merge pull request #1 from deong/work

added ability to write dot files for discrete graphs