def toDOT(tree, adaptor=None, treeST=DOTTreeGenerator._treeST, edgeST=DOTTreeGenerator._edgeST):
 gen = DOTTreeGenerator()
 return gen.toDOT(tree, adaptor, treeST, edgeST)

def toDOT ( tree , adaptor = None , treeST = DOTTreeGenerator . _treeST , edgeST = DOTTreeGenerator . _edgeST ) : gen = DOTTreeGenerator ( ) return gen . toDOT ( tree , adaptor , treeST , edgeST )
generate dot for a whole tree not just a node .