-
Hi! So I am working on converting a list of networkx graphs to PyG graphs to train a graph classification framework. I observed that when I convert PyG ---> NetworkX ---> PyG again the labels are not there. If I use `from torch_geometric.data import Data data_list = [Data(...), ..., Data(...)] I get an error while training AttributeError: 'list' object has no attribute 'num_node_features' How do I convert the dataset appropriately? Any insights are welcome. Thanks again! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
You might need to specify the |
Beta Was this translation helpful? Give feedback.
You might need to specify the
node_attrs
andedge_attrs
arguments in theto_networkx
call.