Practical overview
When it fits
Use Attentionwalk when you have a graph in the documented CSV edge-list format and want to learn node embeddings with the Watch Your Step graph-attention method.
Who it is for
- Researchers reproducing or studying graph-embedding methods.
- Developers exploring graph representation learning from edge-list data.
Documented uses
- Learn node vectors from a graph represented as a CSV edge list.
- Adjust training settings such as embedding dimensions, epochs, window size and number of walks.
- Save node embeddings and attention values for downstream graph research, including link-prediction work.
Requirements & limits
- Input must be an edge-list CSV with a header and node IDs starting at zero.
- The repository includes sample graphs for Twitch Brasilians and Wikipedia Chameleons.
- The README specifies Python 3.5.2 and older development dependency versions; adapting the environment may be necessary.
- The project is licensed under GPL-3.0.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Learn embeddings from an edge-list CSV
Run the repository's documented script to produce node embeddings and attention values from a graph file.
Before you start
- Python 3.5.2; the README lists development versions including PyTorch 1.1.0, torchvision 0.3.0, NetworkX 2.4, NumPy 1.15.4, pandas 0.23.4 and SciPy 1.1.0.
- A CSV graph file with a header, one comma-separated edge per row, and node IDs beginning at zero. Example graphs are included in the input directory.
Steps
Use the documented default dataset and run the command below, or supply
--edge-pathwith a graph CSV.python src/main.pyOptionally set model parameters such as
--dimensions,--window-sizeor--num-of-walks; the README gives examples for changing dimensions and window size.Set
--embedding-pathand--attention-pathif custom output filenames are needed.
Expected outcome
The script is documented to write node embeddings and attention values to the specified paths; node representations are ordered by ID.
Guide limitations
- The README lists older development package versions; it does not document compatibility with other versions.
- The documented input format requires a header and zero-based node IDs.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 20 November 2026
- Original website title
- benedekrozemberczki/AttentionWalk · Official homepage title · retained in its source language

