-
I'm creating own dataset. I have adjacency list representation of graph but PyTorch_Gometric need Graph connectivity in COO format for edge_index. I'm having 3D Mesh in off file format and off according to off file
I converted mesh to adjacency list format. Now how can I convert adjacency list to edge_index ?
But after executing this code edge_index shape comes [2, 2*x] (x is number of edges of in Mesh mentioned in off file) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This looks correct to me since PyG expects that both directions of an edge are present in |
Beta Was this translation helpful? Give feedback.
This looks correct to me since PyG expects that both directions of an edge are present in
edge_index
. You can also take a look at theFaceToEdge
transform for this.