OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Graphmae

Graphmae is a public Python implementation of a generative self-supervised graph-learning method based on masked graph autoencoders. The repository documents node- and graph-classification experiments and points to separate code for molecular-property prediction.

Independent OpenViST project profile, based on linked sources.

Graphmae — Node classification on Cora, Citeseer, PubMed, ogbn-arxiv, PPI or Reddit
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use the repository when you want a research implementation and documented starting commands for self-supervised graph learning experiments, especially node or graph classification.

Who it is for

  • Researchers studying self-supervised graph representation learning.
  • Practitioners experimenting with node classification on the listed transductive or inductive datasets.
  • Researchers comparing graph-classification or molecular-property-prediction approaches.

Documented uses

  • Pretrain graph representations with a masked-autoencoder method.
  • Set up documented transductive or inductive node-classification runs.
  • Run graph-classification experiments using supported example datasets.
  • Explore the repository’s separate molecular-property-prediction code.
Before you choose

Requirements & limits

  • The listed stack requires Python 3.7+, PyTorch 1.9.0+, DGL 0.7.2+ and PyYAML 5.4.1.
  • The README provides both shell-script and manual-command routes for node and graph classification.
  • The main README points to a separate PYG branch for node and graph classification.
  • The repository directs molecular-property-prediction users to code in its chem directory.
  • The README says node- and graph-classification datasets download automatically from DGL when running the code.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Run a documented node-classification workflow

Start a transductive or inductive node-classification experiment using one of the listed datasets.

Before you start

  • Python 3.7 or later
  • PyTorch 1.9.0 or later
  • DGL 0.7.2 or later
  • PyYAML 5.4.1
  • A dataset name and GPU ID for the provided script

Steps

  1. Choose a transductive dataset: cora, citeseer, pubmed or ogbn-arxiv; or an inductive dataset: ppi or reddit.

  2. Run the corresponding repository script: the command below or the command below.

    Documented command
    sh scripts/run_transductive.sh 
    Documented command
    sh scripts/run_inductive.sh 
  3. For the documented manual route, use the command below or the command below.

    Documented command
    python main_transductive.py --dataset cora --encoder gat --decoder gat --seed 0 --device 0
    Documented command
    python main_inductive.py --dataset ppi --encoder gat --decoder gat --seed 0 --device 0
  4. Add --use_cfg when using the provided scripts or manual command if reproducing the reported results.

Expected outcome

The repository provides commands for starting a transductive or inductive node-classification run; the README says node-classification datasets download automatically from DGL when the code runs.

Guide limitations

  • The examples specify a GPU ID or device but do not state hardware requirements.
  • The listed datasets and commands cover the documented node-classification workflow, not every possible graph dataset.
Source-based practical guide

Run a documented graph-classification workflow

Start a graph-classification experiment on one of the repository’s listed datasets.

Before you start

  • Python 3.7 or later
  • PyTorch 1.9.0 or later
  • DGL 0.7.2 or later
  • PyYAML 5.4.1
  • A dataset name and GPU ID for the provided script

Steps

  1. Choose a listed dataset: IMDB-BINARY, IMDB-MULTI, PROTEINS, MUTAG, NCI1, REDDIT-BINARY or COLLAB.

  2. Run the command below.

    Documented command
    sh scripts/run_graph.sh 
  3. For the documented manual example, run the command below.

    Documented command
    python main_graph.py --dataset IMDB-BINARY --encoder gin --decoder gin --seed 0 --device 0
  4. Add --use_cfg if reproducing the reported results.

Expected outcome

The repository provides a script and a manual example for starting graph-classification runs; the README says graph-classification datasets download automatically from DGL when the code runs.

Guide limitations

  • The manual command is an example for IMDB-BINARY, not a command documented for every listed dataset.
  • The README points to the chem directory for molecular-property prediction rather than detailing that workflow here.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
8 November 2026
Original website title
THUDM/GraphMAE · Official homepage title · retained in its source language

Related options

GraphMAE2 — A separate follow-up project linked from the Graphmae README; its code is maintained in a different repository.