Practical overview
When it fits
Use it when you have graph edges, sparse node features and class targets in the documented formats and want a command-line implementation of MixHop or N-GCN.
Who it is for
- Researchers reproducing or exploring MixHop and N-GCN graph-learning methods.
- Developers prototyping node-classification models using graph structure and sparse node features.
Documented uses
- Train a MixHop or N-GCN model from an edge list, sparse node features and target classes.
- Configure training parameters such as epochs, learning rate, dropout and model layers.
- Compare the two model variants on graph-learning tasks.
Requirements & limits
The repository is public and identified as open source under GPL-3.0.
- The implementation uses Python 3.5.2 and lists specific development versions for PyTorch, torch-sparse and supporting packages.
- Inputs must follow three distinct formats: edge-list CSV, sparse-feature JSON and target CSV.
- The README includes sample Cora input files and documents training through
src/main.py.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare graph inputs for model training
Format graph structure, sparse node features and target classes for the repository’s training script.
Before you start
- A graph edge-list CSV with a header and zero-indexed node identifiers.
- A JSON file containing sparse binary node features, with node identifiers as keys and feature indices as values.
- A target CSV with headers, node identifiers and class labels indexed from zero.
Steps
Represent each graph edge as a comma-separated node pair in the edge-list CSV.
Store each node’s feature indices as a list in the JSON feature file.
Create a target CSV containing each node identifier and its class label.
Expected outcome
The three input files follow the formats described for the training script.
Guide limitations
- The guide covers input preparation only; it does not verify that a particular dataset will train successfully.
- The README’s sample files are for Cora.
Select a model variant for training
Choose MixHop or N-GCN through the documented model option.
Before you start
- Python 3.5.2 and the documented development packages, including PyTorch 1.1.0 and torch-sparse 0.3.0.
- Graph edge-list, sparse-feature and target files in the documented formats.
Steps
Use the repository’s
src/main.pytraining script.Choose the model variant with the
--modeloption; MixHop is the documented default andngcnselects N-GCN.Set documented training options such as epochs, learning rate or dropout as needed.
Expected outcome
The script is configured to train the selected graph-convolution model using the specified inputs and options.
Guide limitations
- The documented package versions are development versions and may require an environment that matches those dependencies.
- This describes the repository’s documented invocation, not a tested result.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- benedekrozemberczki/MixHop-and-N-GCN · Official homepage title · retained in its source language
Related options
Original TensorFlow MixHop implementation — The repository README points to this as the original TensorFlow implementation of MixHop.

