add #dot method for generating graphviz dot syntax