-
I have a question about the behavior of torch_geometric.loader.NeighborLoader. I thought it was an isolated node, but my graph did not contain any isolated nodes. This is my implementation with output,
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yeah the last few nodes might be isolated. |
Beta Was this translation helpful? Give feedback.
Yeah the last few nodes might be isolated.
contains_isolated_nodes(dataset.data.edge_index)
will returnFalse
in that case. Try runningcontains_isolated_nodes(dataset.data.edge_index, dataset.data.num_nodes)
this should returnTrue
.