Skip to content

Commit 6a35318

Browse files
authored
Merge pull request #1249 from aprokop/fortify_dendrogram_test
2 parents 240b8fc + b7ce2c1 commit 6a35318

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/tstDendrogram.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,15 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(dendrogram_boruvka, DeviceType,
114114

115115
ExecutionSpace space;
116116

117+
int const n = 3000;
118+
117119
// Choosing n > 5000 often results in MST producing edges of equal weight.
118120
// This is a bit problematic because there are multiple correspondoning
119121
// binary dendrograms which are all correct. This makes the comparison very
120-
// hard, and something we want to avoid for now.
121-
int const n = 3000;
122-
auto points = ArborXTest::make_random_cloud<ArborX::Point<3>>(space, n);
122+
// hard, and something we want to avoid for now. The box is changed from
123+
// [0,1]^3 to [0,100]^3 to decrease the chance of having equal weights.
124+
auto points = ArborXTest::make_random_cloud<ArborX::Point<3>>(space, n, 100.f,
125+
100.f, 100.f);
123126

124127
ArborX::Experimental::MinimumSpanningTree<MemorySpace, BoruvkaMode::HDBSCAN>
125128
mst(space, points);

0 commit comments

Comments
 (0)