Map indices from line graph back to the original graph #5554
-
Hi everyone! |
Beta Was this translation helpful? Give feedback.
Answered by
EdisonLeeeee
Sep 29, 2022
Replies: 1 comment 1 reply
-
The nodes in the line graph were mapped to the # v: index of node in the line graph
# u, w: index of node in the original graph
# edge_index: edge indices of original graph
u, w = edge_index[v] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lisiq
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The nodes in the line graph were mapped to the
edge_index
of the original graphs, so you can simply run: