Skip to content

DBLP

DBLP(
    base_dir: Optional[str] = None,
    transform: Optional[Callable] = None,
    pre_transform: Optional[Callable] = None,
)

Bases: HeteroDataset

A subset of the DBLP computer science bibliography website, as collected in the "MAGNN: Metapath Aggregated Graph Neural Network for Heterogeneous Graph Embedding" paper. DBLP is a heterogeneous graph containing four types of entities - authors (4,057 nodes), papers (14,328 nodes), terms (7,723 nodes), and conferences (20 nodes). The authors are divided into four research areas (database, data mining, artificial intelligence, information retrieval). Each author is described by a bag-of-words representation of their paper keywords.

Parameters:

Name Type Description Default
base_dir Optional[str]

directory where the dataset should be saved.

None
transform Optional[Callable]

A function/transform that takes in an HeteroGraphData object and returns a transformed version. The data object will be transformed before every access. (default: None)

None
pre_transform Optional[Callable]

A function/transform that takes in an HeteroGraphData object and returns a transformed version. The data object will be transformed before being saved to disk. (default: None)

None
Source code in mlx_graphs/datasets/dblp.py
def __init__(
    self,
    base_dir: Optional[str] = None,
    transform: Optional[Callable] = None,
    pre_transform: Optional[Callable] = None,
):
    super().__init__(
        name="DBLP",
        base_dir=base_dir,
        transform=transform,
        pre_transform=pre_transform,
    )

from mlx_graphs.datasets import DBLP · mlx_graphs/datasets/dblp.py