• Home
  • Raw
  • Download

Lines Matching refs:centrality

64     std::vector< double > centrality(V);  in run_weighted_test()  local
67 centrality.begin(), get(vertex_index, g), double())) in run_weighted_test()
73 BOOST_TEST(centrality[v] == correct_centrality[v]); in run_weighted_test()
113 std::vector< double > centrality(V); in run_unweighted_test() local
118 centrality.begin(), get(vertex_index, g), double())) in run_unweighted_test()
140 BOOST_TEST(centrality[v] == centrality2[v]); in run_unweighted_test()
143 ? centrality[v] in run_unweighted_test()
144 : (centrality[v] - correct_centrality[v]) / correct_centrality[v]; in run_unweighted_test()
201 std::vector< double > centrality(V); in run_wheel_test() local
204 centrality.begin(), get(vertex_index, g), double())); in run_wheel_test()
215 centrality.begin(), get(vertex_index, g), double())); in run_wheel_test()
223 BOOST_TEST(centrality[v] == centrality2[v]); in run_wheel_test()
225 (v == 0 && centrality[v] == 1) || (v != 0 && centrality[v] == 0)); in run_wheel_test()
266 const Graph& g, VertexIndexMap index, CentralityMap centrality) in simple_unweighted_betweenness_centrality() argument
280 put(centrality, *vi, 0); in simple_unweighted_betweenness_centrality()
373 centrality[w] += delta[get(index, w)]; in simple_unweighted_betweenness_centrality()
386 put(centrality, *v, get(centrality, *v) / centrality_type(2)); in simple_unweighted_betweenness_centrality()
411 std::vector< double > centrality(n); in random_unweighted_test() local
414 centrality.begin(), get(vertex_index, g), double())); in random_unweighted_test()
424 if (!std::equal(centrality.begin(), centrality.end(), centrality2.begin())) in random_unweighted_test()
426 for (std::size_t v = 0; v < centrality.size(); ++v) in random_unweighted_test()
428 double relative_error = centrality[v] == 0.0 in random_unweighted_test()
430 : (centrality2[v] - centrality[v]) / centrality[v]; in random_unweighted_test()
450 if (!std::equal(centrality.begin(), centrality.end(), centrality3.begin())) in random_unweighted_test()
452 for (std::size_t v = 0; v < centrality.size(); ++v) in random_unweighted_test()
454 double relative_error = centrality[v] == 0.0 in random_unweighted_test()
456 : (centrality3[v] - centrality[v]) / centrality[v]; in random_unweighted_test()