We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eec3a46 commit b02dcaaCopy full SHA for b02dcaa
test/utils.jl
@@ -61,12 +61,12 @@
61
end
62
63
@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]
+ 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]
65
B = [0.318907 0.189981 0.991791;
66
0.547022 0.977349 0.680538;
67
0.921823 0.35132 0.494715;
68
0.451793 0.00704976 0.0189275]
69
- g1 = rand_graph(3, 6, ndata = (x = A,))
+ g1 = rand_graph(4, 6, ndata = (x = A,))
70
g2 = rand_graph(3, 6, ndata = B)
71
output1 = topk_nodes(g1, :x, 2)
72
output2 = topk_nodes(g2, :x, 1, sortby = 2)
0 commit comments