Skip to content

Commit b02dcaa

Browse files
committed
Modify test arbitrary node number case
1 parent eec3a46 commit b02dcaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utils.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
end
6262

6363
@testset "topk_nodes" begin
64-
A = [1.0 5.0 9.0; 2.0 6.0 10.0; 3.0 7.0 11.0; 4.0 8.0 12.0]
64+
A = [1.0 5.0 9.0 2.0; 2.0 6.0 10.0 1.0; 3.0 7.0 11.0 2.0; 4.0 8.0 12.0 1.0]
6565
B = [0.318907 0.189981 0.991791;
6666
0.547022 0.977349 0.680538;
6767
0.921823 0.35132 0.494715;
6868
0.451793 0.00704976 0.0189275]
69-
g1 = rand_graph(3, 6, ndata = (x = A,))
69+
g1 = rand_graph(4, 6, ndata = (x = A,))
7070
g2 = rand_graph(3, 6, ndata = B)
7171
output1 = topk_nodes(g1, :x, 2)
7272
output2 = topk_nodes(g2, :x, 1, sortby = 2)

0 commit comments

Comments
 (0)