Extracting subgraph from Heterograph #6497
Unanswered
GianlucaDeStefano
asked this question in
Q&A
Replies: 1 comment 1 reply
-
A hacky way of doing this would be to use the LinkNeighborLoader.
Given this is hacky. It would be nice to have |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
My task is simple; given an edge in an heterograph, I want to extract its neighborhood graph up to a certain number of hops.
Looking at the documentation, I have yet to find a good way to do this.
I found the utility k_hop_subgraph, but unfortunately, it does not support HeteroGraphs.
Exploring the code of Pyg found that /sampler/init.py contains the function "hetero_neighbor_sample" that is, however, undocumented. Can someone please clarify to me the difference between the parameters:
In practice, what should they contain?
is there maybe a better function to use that I have missed?
Beta Was this translation helpful? Give feedback.
All reactions