def testFitDiscretePowerLaw2(self):
        try:
            import networkx
        except __HOLE__:
            logging.debug("Networkx not found, can't run test")
            return

        nxGraph = networkx.barabasi_albert_graph(1000, 2)
        graph = SparseGraph.fromNetworkXGraph(nxGraph)
        degreeSeq = graph.outDegreeSequence()

        output = Util.fitDiscretePowerLaw(degreeSeq)
dataset/ETHPy150Open charanpald/APGL/apgl/util/test/UtilTest.py/UtilTest.testFitDiscretePowerLaw2