Skip to content
Discussion options

You must be logged in to vote

Why is sorting the edge_index necessary for LSTM? Will there be a problem with this?

Since graphs are unordered we need to sort the neighbors of a node to pass it to an LSTM.

How will my model determine which nodes are related after I sort edge_index in this manner? thus there are no longer any of the initial edge connection pairings. It is analogous to giving input edge pairs that are not present in the graph.

Use sort_edge_index or Data.sort() to correctly sort edge indicies as described in the LSTM aggregation document

Replies: 2 comments 1 reply

Comment options

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

Answer selected by Panichito
Comment options

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