-
Hello, Suppose I have a graph formatted in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The most efficient way to do this would be via loader = NeighborLoader(data, num_neighbors=[-1, -1])
loader(torch.tensor([1, 5000, 10000, 1024, 12345]))
|
Beta Was this translation helpful? Give feedback.
The most efficient way to do this would be via
NeighborLoader
, e.g.:k_hop_subgraph
does the trick as well but it should be a bit slower to compute.