Specify custom node IDs to Data
#5741
-
I have a graph that has specific, alpha-numeric node IDs for each of it's nodes. My edge index defines the connectivity information using these node IDs. I want to create a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your interpretation is correct. The values in |
Beta Was this translation helpful? Give feedback.
Your interpretation is correct. The values in
edge_index
are the indices ofx
i.e if you have an edge (1,2) that meansx[1]
is connected tox[2]
.If you don't have a way of computing the alpha-numeric ID from the node id then you'll probably have to maintain a mapping.