def deepCopy(self):
        newTree = DictTree()    
        newTree.adjacencies = {} 
        
        for key in self.adjacencies.keys():         
            newTree.adjacencies[key] = self.adjacencies[key].copy() 
            
        for vertexId in self.getAllVertexIds(): 
            vertex = self.getVertex(vertexId)
            newTree.vertices[vertexId] = copy.copy(vertex)
        
        return newTree
Return a copied version of this tree. This is a deep copy in 
dataset/ETHPy150Open charanpald/APGL/apgl/graph/DictTree.py/DictTree.deepCopy