def testGraphDisplay(self):
        try:
            import networkx
            import matplotlib
        except __HOLE__ as error:
            logging.debug(error)
            return 

        #Show
        numFeatures = 1
        numVertices = 20

        vList = VertexList(numVertices, numFeatures)
        graph = SparseGraph(vList)

        ell = 2
        m = 2
        generator = BarabasiAlbertGenerator(ell, m)

        graph = generator.generate(graph)

        logging.debug((graph.degreeDistribution()))

        nxGraph = graph.toNetworkXGraph()
        nodePositions = networkx.spring_layout(nxGraph)
        nodesAndEdges = networkx.draw_networkx(nxGraph, pos=nodePositions)
        #matplotlib.pyplot.show()
dataset/ETHPy150Open charanpald/APGL/apgl/generator/test/BarabasiAlbertGeneratorTest.py/BarabasiAlbertGeneratorTest.testGraphDisplay