def setVertex(self, vertexId, vertex=None):
        if self.getNumVertices()==0 and not self.vertexExists(vertexId):
            super(DictTree, self).setVertex(vertexId, vertex)
        elif self.vertexExists(vertexId):
            super(DictTree, self).setVertex(vertexId, vertex)
        else:
            raise RuntimeError("Can only set a new vertex in an empty tree: " + str(vertexId))
Assign a value to a vertex with given name
dataset/ETHPy150Open charanpald/APGL/apgl/graph/DictTree.py/DictTree.setVertex