OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Attentionwalk

Attentionwalk is a Python and PyTorch implementation of a graph-attention method that learns node embeddings from graph data. It trains attention parameters to guide random walks, then writes node representations and attention values to files.

Independent OpenViST project profile, based on linked sources.

Attentionwalk — Graph-embedding experiments using node relationships as input
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Use the documented default dataset and run the command below, or supply --edge-path with a graph CSV.

    Documented command
    python src/main.py
  2. Optionally set model parameters such as --dimensions, --window-size or --num-of-walks; the README gives examples for changing dimensions and window size.

  3. Set --embedding-path and --attention-path if 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.
Evidence and transparency

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