Practical overview
When it fits
Use Sgcn when you have graph data with positive and negative edge signs and want to study node representations using a documented PyTorch implementation.
Who it is for
- Researchers studying signed networks and graph representation learning.
- Developers prototyping node-embedding experiments with positive and negative edges.
Documented uses
- Learn low-dimensional node embeddings from a signed graph.
- Explore link-sign prediction experiments on network data.
- Compare signed graph-convolution embeddings with other graph representation methods.
Requirements & limits
The repository is public and identifies its license as GPL-3.0.
- Graph input is CSV-based, with node IDs and an edge sign in each row; node indexing starts at zero.
- The README records a development environment of Python 3.5.2 and specific older package versions, including PyTorch 1.1.0 and PyTorch Geometric 1.3.2.
- The command-line script exposes controls for training epochs, learning rate, layer sizes, random seed, test ratio and output paths.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare CSV inputs for signed-graph embedding
Format an edge graph and, when using node features, a feature CSV for the SGCN input options.
Before you start
- Python 3.5.2 is listed as the implementation version.
- The README lists the package versions used for development, including PyTorch 1.1.0 and PyTorch Geometric 1.3.2.
- An edge CSV whose first row is a header, with each subsequent row representing two node IDs and a sign; node IDs start at 0.
- If using features, a feature CSV with rows sorted by increasing node ID.
Steps
Create the edge CSV with a header and comma-separated node IDs and sign for each edge.
Index graph nodes starting at 0.
If supplying node features, create the features CSV with feature rows sorted by increasing node ID.
Use the documented
--edge-pathand, if applicable,--features-pathoptions to identify the input files.
Expected outcome
CSV inputs are formatted according to the README’s described edge and feature dataset structures and can be specified through the listed input options.
Guide limitations
- The displayed feature-table example is not consistently sorted by node ID, while the text says feature rows must be sorted by increasing ID; follow the stated ordering requirement.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 21 November 2026
- Original website title
- benedekrozemberczki/SGCN · Official homepage title · retained in its source language

