def test_attribute_assortativity_multigraph(self):
     r=mixing.attribute_assortativity(self.M,'fish')
     assert_equal(r,1.0)
 def test_attribute_assortativity_directed(self):
     r=mixing.attribute_assortativity(self.D,'fish')
     assert_equal(r,1.0/3.0)
示例#3
0
 def test_attribute_assortativity_directed(self):
     r = mixing.attribute_assortativity(self.D, 'fish')
     assert_equal(r, 1.0 / 3.0)
 def test_attribute_assortativity_undirected(self):
     r=mixing.attribute_assortativity(self.G,'fish')
     assert_equal(r,6.0/22.0)
示例#5
0
 def test_attribute_assortativity_undirected(self):
     r = mixing.attribute_assortativity(self.G, 'fish')
     assert_equal(r, 6.0 / 22.0)