(func)
return result
Creates an alias for the 3D version of the given layout algoritm.

    This function is a decorator that creates a method which calls I{func} after
    attaching C{dim=3} to the list of keyword arguments.

    @param func: must be a method of the Graph object.
    @return: a new method
Creates an alias for the 3D version of the given layout algoritm.
Creates an alias for the 3D version of the given layout algoritm .
def _3d_version_for(func):
    """Creates an alias for the 3D version of the given layout algoritm.

    This function is a decorator that creates a method which calls I{func} after
    attaching C{dim=3} to the list of keyword arguments.

    @param func: must be a method of the Graph object.
    @return: a new method
    """

    def result(*args, **kwds):
        kwds["dim"] = 3
        return func(*args, **kwds)

    result.__name__ = "%s_3d" % func.__name__
    result.__doc__ = """Alias for L{%s()} with dim=3.\n\n@see: Graph.%s()""" % (
        func.__name__,
        func.__name__,
    )
    return result
def _3d_version_for ( func ) : def result ( * args , * * kwds ) : kwds [ "dim" ] = 3 return func ( * args , * * kwds ) result . __name__ = "%s_3d" % func . __name__ result . __doc__ = """Alias for L{%s()} with dim=3.\n\n@see: Graph.%s()""" % ( func . __name__ , func . __name__ , ) return result