def isLeaf(self, vertexId):
        return len(self.neighbours(vertexId)) == 0
Returns true if the input vertex id is a leaf otherwise false. 
dataset/ETHPy150Open charanpald/APGL/apgl/graph/DictTree.py/DictTree.isLeaf