Skip to content
Discussion options

You must be logged in to vote

The most efficient way to do this would be via NeighborLoader, e.g.:

loader = NeighborLoader(data, num_neighbors=[-1, -1])
loader(torch.tensor([1, 5000, 10000, 1024, 12345]))

k_hop_subgraph does the trick as well but it should be a bit slower to compute.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by RX28666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants