def test_describe_community(self):
     processor = _fill_db()
     algorithm = processor.algorithms[0]
     desc = Describer(algorithm, processor)
     disp = GraphAlgDispatcher(processor, algorithm)
     results = disp.dispatch_community()
     comm_desc = desc.describe_community_results(results)
     self.assertGreater(len(comm_desc), 0)
示例#2
0
 def create_html(self):
     algs = [
         alg for alg in self.comm_algs
         if self.settings['algorithms'][alg.name]
     ]
     describer = Describer(self.algorithm, self.processor)
     dispatcher = GraphAlgDispatcher(self.processor, self.algorithm)
     results = dispatcher.dispatch_community(
         self._test_func, min_val=self.settings['min_val'])
     return describer.describe_community_results(results)