class graphdatascience.datasets.nx_loader.NXLoader
load(nx_G: Graph, graph_name: str, concurrency: int | None = None) GraphV2
Parameters:
  • nx_G (Graph) – The networkx graph to load.

  • graph_name (str) – Name of the graph to create.

  • concurrency (int | None) – Number of concurrent threads to use.

Returns:

A handle to the graph.

Return type:

GraphV2

class graphdatascience.datasets.ogb_loader.OGBNLoader
load(dataset_name: str, dataset_root_path: str = 'dataset', graph_name: str | None = None, concurrency: int | None = None) GraphV2
Parameters:
  • dataset_name (str) – Name of the dataset to load.

  • dataset_root_path (str) – Path to the root directory of the dataset.

  • graph_name (str | None) – Name of the graph to create.

  • concurrency (int | None) – Number of concurrent threads to use.

Returns:

A handle to the graph.

Return type:

GraphV2

class graphdatascience.datasets.ogb_loader.OGBLLoader
load(dataset_name: str, dataset_root_path: str = 'dataset', graph_name: str | None = None, concurrency: int | None = None) GraphV2
Parameters:
  • dataset_name (str) – Name of the dataset to load.

  • dataset_root_path (str) – Path to the root directory of the dataset.

  • graph_name (str | None) – Name of the graph to create.

  • concurrency (int | None) – Number of concurrent threads to use.

Returns:

A handle to the graph.

Return type:

GraphV2