torch_geometric_signed_directed.data.signed.SDGNN_real_data

Attributes

dataset_name_url_dic

Classes

SDGNN_real_data

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.InMemoryDataset

Signed 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.Data object 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.Data object and returns a transformed version. The data object will be transformed before being saved to disk. (default: None)

name
url
root
property raw_dir: str
property processed_dir: str
property raw_file_names: str
property processed_file_names: str
download()
process()
property num_nodes: int