#NEWLINE# def testDegreeDistribution( self ) : #NEWLINE# #INDENT# numVertices = 3 #NEWLINE# numFeatures = 0 #NEWLINE# vList = VertexList ( numVertices , numFeatures ) #NEWLINE# initialGraph = SparseGraph ( vList ) #NEWLINE# initialGraph . addEdge ( 0 , 1 ) #NEWLINE# initialGraph . addEdge ( 1 , 2 ) #NEWLINE# for i in range ( numVertices ) : #NEWLINE# #INDENT# initialGraph . addEdge ( i , i ) #NEWLINE# #UNINDENT# logging . debug ( initialGraph . outDegreeSequence ( ) ) #NEWLINE# logging . debug ( initialGraph . degreeDistribution ( ) ) #NEWLINE# k = 2 #NEWLINE# generator = StochasticKroneckerGenerator ( initialGraph , k ) #NEWLINE# graph = generator . generateGraph ( ) #NEWLINE# logging . debug ( graph . outDegreeSequence ( ) ) #NEWLINE# logging . debug ( graph . degreeDistribution ( ) ) #NEWLINE# k = 3 #NEWLINE# generator = StochasticKroneckerGenerator ( initialGraph , k ) #NEWLINE# graph = generator . generateGraph ( ) #NEWLINE# logging . debug ( graph . degreeDistribution ( ) )