def __init__(self, name, root=None, user=None, poolName='default',
                 maxRN=-1, tags={}):
        self.name = unicode(name)

        if root is None:
            self.root = TaskGroup(name, tags=tags)
        else:
            if isinstance(root, Task) or isinstance(root, TaskGroup):
                self.root = root
                self.root.updateTags(tags)
            else:
                raise GraphError("Invalid root element given.")

        self.poolName = poolName
        self.maxRN = maxRN
        self.meta = {}
        if user is None:
            import getpass

            self.user = getpass.getuser()
        else:
            self.user = user
| Create a new graph object with given name and parameters.
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/puliclient/__init__.py/Graph.__init__