How do I create an homogeneous graph like an heterogeneous graph? #5977
-
It is very easy to create nodes as well as edges when create the heterogeneous graph. Is there a similar way to create homogeneous graph like create the heterogeneous graph? |
Beta Was this translation helpful? Give feedback.
Answered by
EdisonLeeeee
Nov 15, 2022
Replies: 1 comment 7 replies
-
A homogeneous graph in PyG is denoted by from torch_geometric.data import Data
data = Data(x=..., edge_index=..., edge_attr=...) |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
ppsmk388
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A homogeneous graph in PyG is denoted by
torch_geometric.data.Data