Dataset endpoints¶
- class graphdatascience.procedure_surface.api.catalog.dataset_endpoints.DatasetEndpoints¶
- load_cora(graph_name: str = 'cora', undirected: bool = False) GraphV2¶
A citation network introduced.
- load_imdb(graph_name: str = 'imdb', undirected: bool = True) GraphV2¶
A heterogeneous graph that is used to benchmark node classification or link prediction models.
The graph contains Actors, Directors, Movies (and UnclassifiedMovies) as nodes, and relationships between actors and movies that they acted in, and between directors and movies which they directed for.
- load_karate_club(graph_name: str = 'karate_club', undirected: bool = False) GraphV2¶
A social network introduced by http://konect.cc/networks/ucidata-zachary/[Zachary].
- load_lastfm(graph_name: str = 'lastfm', undirected: bool = True) GraphV2¶
A heterogeneous graph that is used to benchmark link prediction models. The original raw data is from http://www.lastfm.com/[LastFM].
The graph contains User and Artists as nodes, each with a rawId field that corresponds to the ids from the raw data. The rawId could be used, for example, to check the artist names by referring back to the HetRec’11 .dat files.
- property networkx¶
Convenience wrapper to load networkx graphs into the graph catalog.
- Return type:
- property ogbl: OGBLLoader¶
Datasets used for link property prediction.
- property ogbn: OGBNLoader¶
Datasets used for node property prediction.