torch_geometric_signed_directed.data.signed.SDGNN_real_data
Attributes
Classes
Signed Directed Graph from the `"SDGNN: Learning Node Representation |
Module Contents
- dataset_name_url_dic
- class SDGNN_real_data(name: str, root: str, transform: Callable | None = None, pre_transform: Callable | None = None)
Bases:
torch_geometric.data.InMemoryDatasetSigned Directed Graph from the “SDGNN: Learning Node Representation for Signed Directed Networks” paper, consising of five different datasets: Bitcoin-Alpha, Bitcoin-OTC, Wikirfa, Slashdot and Epinions from snap.stanford.edu.
- Parameters:
name (str) – Name of the dataset, choices are: ‘bitcoin_alpha’, ‘bitcoin_otc’, ‘wiki’, ‘epinions’, ‘slashdot’.
root (str) – Root directory where the dataset should be saved.
transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before every access. (default:None)pre_transform (callable, optional) – A function/transform that takes in an
torch_geometric.data.Dataobject and returns a transformed version. The data object will be transformed before being saved to disk. (default:None)
- name
- url
- root
- download()
- process()