finished output to .gv file. tested for all cases. and results are correct.
tested output to .gv file
merged changes