You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I want to create a hetero graph and visualize it.
my data is in separated CSV file ( X.CSV and Y.csv ). Some of nodes and edges are shared in these csvs.
But, the dpu and dpt as a destination nodes are the same in some values in csv files. now this graph is constructed separate subgraph with different node and edge. how can solve this issue? to have one hetero graph. if i have dpu and dpt as a same name then the dpt edges is writen on the dpu.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I want to create a hetero graph and visualize it.
my data is in separated CSV file (
X.CSV
andY.csv
). Some of nodes and edges are shared in these csvs.`data['spu'].x = torch.tensor(u['tt']).reshape([-1, 1])
data['spu'].x = data['spu'].x.type(torch.FloatTensor)
data['dpu'].x = torch.tensor(u['tt']).reshape([-1, 1])
data['dpu'].x = data['dpu'].x.type(torch.FloatTensor)
data['spu','u', 'dpu'].edge_index = e
data['spu','u', 'dpu'].edge_attr = u_node_features
data['spt'].x = torch.tensor(t['tt']).reshape([-1, 1])
data['spt'].x = data['spt'].x.type(torch.FloatTensor)
data['dpt'].x = torch.tensor(t['tt']).reshape([-1, 1])
data['dpt'].x = data['dpt'].x.type(torch.FloatTensor)
data['spt','t', 'dpt'].edge_index = e1
data['spt','t', 'dpt'].edge_attr = t_node_features
data['spu'].y =y2
data['dpu'].y =y2
data['spt'].y =y3
data['dpt'].y =y3`
But, the
dpu
anddpt
as a destination nodes are the same in some values in csv files. now this graph is constructed separate subgraph with different node and edge. how can solve this issue? to have one hetero graph. if i havedpu
anddpt
as a same name then thedpt
edges is writen on thedpu
.Beta Was this translation helpful? Give feedback.
All reactions