Obtaining the original edge indices from ClusterData #2840
-
Hello! I am currently struggling with link prediction problem on large graphs. I have decided to use ClusterGCN. Because my initial graph doesn't fit in memory, I compute partitioning using ClusterData and train embeddings on subgraphs. However, it is not clear how to infer after training. Is it possible to obtain the original edge indices of a subgraph after partitioning? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I suggest to add a vector to your data.e_id = torch.arange(data.num_edges) After applying |
Beta Was this translation helpful? Give feedback.
I suggest to add a vector to your
data
that denotes the index of original edges:After applying
ClusterLoader
, this attribute will hold the original index of edges after partitioning.