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 2b36121 commit 8df36ffCopy full SHA for 8df36ff
GNNGraphs/test/sampling.jl
@@ -57,8 +57,8 @@ if GRAPH_T == :coo
57
nodes = [1, 2]
58
subgraph = induced_subgraph(graph, nodes)
59
60
- @test num_nodes(subgraph) == 2 # Subgraph should have 2 nodes
61
- @test num_edges(subgraph) == 1 # Subgraph should have 1 edge
+ @test subgraph.num_nodes == 2 # Subgraph should have 2 nodes
+ @test subgraph.num_edges == 1 # Subgraph should have 1 edge
62
### TODO @test subgraph.ndata.x == graph.x[:, nodes] # Features should match the original graph
63
end
64
0 commit comments