How can I assign the edge-specific attribute from the LinkNeighborLoader
?
#9629
Unanswered
songsong0425
asked this question in
Q&A
Replies: 0 comments
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, always thank you for your help.
I have a question about the approaches for the edge class labeling.
When I have 2 types of edge classes and want to allocate the related class ID to the sampled neighbors from
LinkNeighborLoader
, how can I do it?I want to do it to separate the message passing per edge classes.
Please take a look at this example. (the source: here)

For example, I already have the edge class information about the answer sets (red and blue lines in the image), and the neighbors were sampled using the
LinkNeighborLoader
.In this case, I aim to assign the edge class ID to the neighbors based on the seed edges.
The data would look like this:
Before I tried using
input_id
for the same task, but it only applied to the edges havingedge_label
.Also, I looked
subgraph
in the PyG, but I'm not sure how to use it for this job.I'm looking forward to your suggestion.
Thank you for reading this question.
Additional information: I used the
LinkNeighborLoader
as below:Beta Was this translation helpful? Give feedback.
All reactions