def METHOD_NAME(e, depth, pos=()):
    nodes.append(dotnode(e, styles, labelfunc=labelfunc, pos=pos, repeat=repeat))
    if maxdepth and depth >= maxdepth:
        return
    edges.extend(dotedges(e, atom=atom, pos=pos, repeat=repeat))
    for i, arg in enumerate(e.args):
        if not atom(arg):
            METHOD_NAME(arg, depth+1, pos + (i,))