What's wrong with new_edge_index, edge_mask = g.subgraph(node_indices, data.edge_index, relabel_nodes=True, num_nodes=data.num_nodes)
? What's the correct way of calling graph.subgraph() ?
#10302
Unanswered
raphael10-collab
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Based on the docs: https://pytorch-geometric.readthedocs.io/en/latest/modules/utils.html#torch_geometric.utils.subgraph
(taken from here: https://github.com/keitabroadwater/gnns_in_action/blob/master/chapter_4/GNN_GAT_part3.ipynb )
should be correct
But I get the error:
Removing
relabel_nodes
:I get :
Removing
num_nodes
I get:
Removing
data.edge_index
:I get:
What's the correct way of calling graph.subgraph() ?
How to make it work?
Beta Was this translation helpful? Give feedback.
All reactions