I am trying to load a SNAP dataset (ego-facebook for now) into a torch_geometric.data.Data
object. I am having issues.
- Is there any standard library/method to load SNAP dataset into a
torch_geometric.data.Data
object? - I tried using
torch_geometric.datasets.SNAPDataset
. It gives me a storage of 10 Data. How can I merge theData
into one object so that I could generate oneNetworkx
object? - I tried making the Data by adding each edge. Later, I wanted to use
torch_geometric.transforms.RandomNodeSplit
to generate the masks. But it did not add any mask. I figuredRandomNodeSplit
goes overdata.node_stores
. In this case, I didn't have anynode_stores
in myData
object. What is the correct way to make a Data object and add nodes/edges to it so that it is consistent withtorch_geometric
style?