'Translates the datastructure into dot'

def dot(self, fd=stdout):

    try:
        self.fd = fd
        self.fd.write('digraph    G    {\n')
        if self.options:
            self.fd.write((self.options + '\n'))
        for e in self.__edges:
            self.browse(e['id'], self.tree)
        for e in self.__edges:
            self.dotLinks(e['id'])
        self.fd.write('}\n')
    finally:
        self.fd = None
