How to add extra edges to graph data? #7489
Replies: 1 comment 3 replies
-
Could you clarify this please? Do you want to add edges represented by |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to build a homogeneous graph for GCN.
During the process, I'd like to expand the
Data
by adding extra edges.For the initial graph construction, I ran the below code:
After that, I want to combine other graph data by connecting the edge index.
A and B columns are matched id in

homo_g
andA_1
andB_1
are new indices for the future node features.In other words,
edge_index[0]
containsA
andB
, andedge_index[1]
containsA_1
andB_1
.As a result, I expect the data like below figure:
Beta Was this translation helpful? Give feedback.
All reactions