@staticmethod
    def treeRoot(treeGraph):
        inDegSeq = treeGraph.inDegreeSequence()
        root = numpy.nonzero(inDegSeq==0)[0][0]
        return root
Find the root of the given tree
dataset/ETHPy150Open charanpald/APGL/apgl/graph/GraphUtils.py/GraphUtils.treeRoot