Пример #1
0
 def test_non_partition_pc(self):
     pc = gm.participation_coefficient(self.karate, self.nonpart)
     assert pc == {0: 1}
Пример #2
0
 def test_trivial_partition_pc(self):
     pc = gm.participation_coefficient(self.karate, self.triviallpart)
     for x in pc.values():
         assert x == 0