def test_Conga(self):
     g = get_string_graph()
     coms = algorithms.conga(g, number_communities=3)
     self.assertEqual(type(coms.communities), list)
     if len(coms.communities) > 0:
         self.assertEqual(type(coms.communities[0]), list)
         self.assertEqual(type(coms.communities[0][0]), str)
Beispiel #2
0
 def conga(n_coms) : return lambda G : algorithms.conga(G, n_coms)
 algos['conga'] = [conga(len(c)) for c in lfr_comms]