Support printing tree as a dot file