We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ca9d01 commit b6fbf10Copy full SHA for b6fbf10
mst_test.go
@@ -36,8 +36,8 @@ func BenchmarkMST(b *testing.B) {
36
n := 1000
37
b.StopTimer()
38
g := New(n)
39
- for i := 0; i < n; i++ {
40
- g.AddBoth(rand.Intn(n), rand.Intn(n))
+ for i := 0; i < 2*n; i++ {
+ g.AddCost(rand.Intn(n), rand.Intn(n), int64(rand.Int()))
41
}
42
b.StartTimer()
43
for i := 0; i < b.N; i++ {
0 commit comments