Question about VirtualNode
Opened this issue · 1 comments
Yedaxia1 commented
I want to add a virtual node to the graph, but I don't want to connect the whole graph, just some nodes in it. How should I do this?
For example: there is a node V={0,1,2,3,4} in the graph, I want to add a node s, connect {s,0},{s,2}, how to realise this is relatively simple.
sangyx commented
You can do this by adding the node when building the graph: https://pytorch-geometric.readthedocs.io/en/latest/get_started/introduction.html#data-handling-of-graphs