Hello guys! I’m a newby in PyTorch geometric and there is one question I can’t solve for the moment.
I’ve generated a torch geometric Data module from existing networkx graph
t_gen = tg.utils.from_networkx(G_numerical)
Now I want to add node features (node data ) to this data module
x = torch.tensor([[2,1], [5,6], [3,7], [12,0]], dtype=torch.float)
y = torch.tensor([0, 1, 0, 1], dtype=torch.float)
How can I do it, please?
Will appreciate any reply!