Skip to content

Commit b26f084

Browse files
authored
Updating the gnngraphdocs.md (#403)
Signed-off-by: achiverram28 <[email protected]>
1 parent f1faa28 commit b26f084

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/gnngraph.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,13 @@ gall = Flux.batch(data)
164164
# gall is a GNNGraph containing many graphs
165165
@assert gall.num_graphs == 160
166166
@assert gall.num_nodes == 1600 # 10 nodes x 160 graphs
167-
@assert gall.num_edges == 9600 # 30 undirected edges x 2 directions x 160 graphs
167+
@assert gall.num_edges == 4800 # 30 undirected edges x 160 graphs
168168

169169
# Let's create a mini-batch from gall
170-
g23, _ = getgraph(gall, 2:3)
170+
g23 = getgraph(gall, 2:3)
171171
@assert g23.num_graphs == 2
172-
@assert g23.num_nodes == 20 # 10 nodes x 160 graphs
173-
@assert g23.num_edges == 120 # 30 undirected edges x 2 directions x 2 graphs x
172+
@assert g23.num_nodes == 20 # 10 nodes x 2 graphs
173+
@assert g23.num_edges == 60 # 30 undirected edges X 2 graphs
174174

175175
# We can pass a GNNGraph to Flux's DataLoader
176176
train_loader = DataLoader(gall, batchsize=16, shuffle=true)

0 commit comments

Comments
 (0)