Skip to content
Discussion options

You must be logged in to vote

The nodes in the line graph were mapped to the edge_index of the original graphs, so you can simply run:

# 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]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lisiq
Comment options

Answer selected by lisiq
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