Lines Matching refs:cm
69 CentralityMap cm(centralities, g); in test_undirected() local
75 double geo1 = all_mean_geodesics(g, dm, cm); in test_undirected()
76 double geo2 = small_world_distance(g, cm); in test_undirected()
78 BOOST_ASSERT(cm[v[0]] == double(5) / 4); in test_undirected()
79 BOOST_ASSERT(cm[v[1]] == double(7) / 4); in test_undirected()
80 BOOST_ASSERT(cm[v[2]] == double(7) / 4); in test_undirected()
81 BOOST_ASSERT(cm[v[3]] == double(9) / 4); in test_undirected()
82 BOOST_ASSERT(cm[v[4]] == double(6) / 4); in test_undirected()
109 CentralityMap cm(centralities, g); in test_directed() local
115 double geo1 = all_mean_geodesics(g, dm, cm); in test_directed()
116 double geo2 = small_world_distance(g, cm); in test_directed()
119 BOOST_ASSERT(cm[v[0]] == inf); in test_directed()
120 BOOST_ASSERT(cm[v[1]] == inf); in test_directed()
121 BOOST_ASSERT(cm[v[2]] == inf); in test_directed()
122 BOOST_ASSERT(cm[v[3]] == double(10) / 4); in test_directed()
123 BOOST_ASSERT(cm[v[4]] == inf); in test_directed()