def test_describe_centrality(self): processor = _fill_db() algorithm = processor.algorithms[0] desc = Describer(algorithm, processor) disp = GraphAlgDispatcher(processor, algorithm) results = disp.dispatch_centrality() centr_desc = desc.describe_centrality_results(results) self.assertGreater(len(centr_desc), 0)
def create_html(self): algs = [ alg for alg in self.graph_algs if self.settings['algorithms'][alg.name] ] describer = Describer(self.algorithm, self.processor) dispatcher = GraphAlgDispatcher(self.processor, self.algorithm) results = dispatcher.dispatch_centrality(self._test_func) return describer.describe_centrality_results(results)