def test_osse(self):
     g = get_string_graph()
     seeds = ["$0$", "$2$", "$5$"]
     communities = algorithms.overlapping_seed_set_expansion(g, seeds)
     self.assertEqual(type(communities.communities), list)
     if len(communities.communities) > 0:
         self.assertEqual(type(communities.communities[0]), list)
         self.assertEqual(type(communities.communities[0][0]), str)
Esempio n. 2
0
 def osse(seeds) : return lambda G : algorithms.overlapping_seed_set_expansion(G, seeds=seeds)
 seeds = [1, 2, 3]