Skip to content

Commit

Permalink
Modify test arbitrary node number case
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorarossi committed Mar 10, 2023
1 parent eec3a46 commit b02dcaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
end

@testset "topk_nodes" begin
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]
B = [0.318907 0.189981 0.991791;
0.547022 0.977349 0.680538;
0.921823 0.35132 0.494715;
0.451793 0.00704976 0.0189275]
g1 = rand_graph(3, 6, ndata = (x = A,))
g1 = rand_graph(4, 6, ndata = (x = A,))
g2 = rand_graph(3, 6, ndata = B)
output1 = topk_nodes(g1, :x, 2)
output2 = topk_nodes(g2, :x, 1, sortby = 2)
Expand Down

0 comments on commit b02dcaa

Please sign in to comment.