Graph Network Explorer

Build a small graph, set the node features, then run a GCN, GAT or GraphSAGE layer step by step and watch each node's representation update.

Loading the lab… If it does not appear, make sure JavaScript is enabled in your browser.

The weights are small fixed-seed matrices to illustrate the computation, not the weights of a trained model. The formulas match those on the GCN, GAT and GraphSAGE pages.

Architectures related to this lab

Basic2009

Graph Neural Network

Graph Neural Network (GNN)

A family of models that learn a representation for each node by exchanging messages with its neighbours along the edges, combining node features with graph structure.

Graph Neural Networks

Basic2017

Graph Convolutional Network

Graph Convolutional Network (GCN)

A simple graph layer that takes a normalised average of the representations of a node and its neighbours and then applies a shared linear transformation; it is a first-o…

Graph Neural Networks

Intermediate2018

Graph Attention Network

Graph Attention Network (GAT)

It replaces GCN's fixed weights with learned attention coefficients for each edge, so each node decides how important each neighbour is, with multiple attention heads.

Graph Neural Networks

Basic2017

GraphSAGE

GraphSAGE

An inductive framework that learns aggregation functions over a sampled neighbourhood, so it can compute representations for new nodes the network did not see during tra…

Graph Neural Networks

Intermediate2019

Graph Isomorphism Network

Graph Isomorphism Network (GIN)

A GNN designed to reach the discriminative power of the Weisfeiler–Lehman test (1-WL), using sum aggregation and an MLP in the update.

Graph Neural Networks

Intermediate2018

Relational Graph Convolutional Network

Relational Graph Convolutional Network (R-GCN)

An extension of GCN for multi-relational graphs (such as knowledge graphs) that uses a different weight for each relation type, with a weight decomposition to reduce par…

Graph Neural Networks

Advanced2020

Graph Transformer

Graph Transformer (GT)

Applying self-attention to the nodes of a graph with positional or structural encodings (such as Laplacian eigenvectors) so the model knows the graph's structure, going…

Graph Neural NetworksSpecialized ArchitecturesTransformer Architectures

Advanced2020

Temporal Graph Networks

Temporal Graph Networks (TGN)

A framework for learning representations on dynamic graphs represented as a stream of timed events, using a memory for each node that is updated by events and an embeddi…

Temporal and Sequential NetworksGraph Neural Networks

Research2016

Equivariant neural networks

Equivariant Neural Networks (ENN)

Networks built so that their output transforms in a specific way when the input is transformed by a symmetry (rotation, translation, reflection, permutation), so they do…

Specialized Architectures