Пример #1
0
 def testClust(self):
     clusts = list(self.graph.clustering_indices(self.nodes))
     p = Plot()
     p.clear()
     p.title = 'Clustering index distribution'
     p.x_label = 'c : node clustering index'
     p.y_label = 'P(c)'
     _, _ = p.dist_plot(clusts, 10, True, True, True)
     #p.show()
     pass
Пример #2
0
    def testDegree(self):

        degrees = list(self.graph.degrees(self.nodes))
        p = Plot()
        p.clear()
        p.title = 'Degree distribution'
        p.x_label = 'd : node degree'
        p.y_label = 'P(d)'
        p.dist_plot(degrees, 10, True, True, True)
        #p.show()
        pass