def test_SCAN(self):
     g = get_string_graph()
     coms = algorithms.scan(g, 0.7, 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)
Exemple #2
0
 def scan(ep, mu) : return lambda G : algorithms.scan(G, ep, mu)
 algos['scan'] = scan(0.7, 3)