All models

GraphConv

The basic 1-GNN message-passing layer, shown to be exactly as expressive as the 1-WL isomorphism test.

Graphs and geometry · 12 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (17 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
8.3K
Operations
12
Framework
PyTorch
Recurrent
No
Published
AAAI 2019
Cited by
153 (as of 18 October 2026)
Authors
Christopher Morris, Martin Ritzert, Matthias Fey and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1234
Graph hash
5ff33822499217d2bc44cd1a5a17cbf0b65441e44116ed8875b9ae5bd4da9118
Skeleton hash
e8d0d20002c61c1420579ba17317b567262224b7634a5b9b9af446a0a5b419be
Architecture hash
11d33153043a7548101b3f1858033e39280b7b7972f0f814bab1f84df0f6ba1d
Diagram SHA-256
5c2f454ac98e7972a0ab061f2c9447655bbbb06bee50e2406db87863480e75c8
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

torch_geometric.nn.GraphConv(in_channels=64, out_channels=64)

What it is

GraphConv is the basic 1-GNN layer from the paper 'Weisfeiler and Leman Go Neural', which relates graph neural networks to the 1-dimensional Weisfeiler-Leman graph isomorphism heuristic. The layer itself is simple: a node's own feature and the sum of its neighbors' features each pass through their own parameter matrix, W1 and W2, before a component-wise non-linearity such as a ReLU. The paper calls architectures of this shape 1-dimensional GNNs, or 1-GNNs. A GNN model stacks such layers, each aggregating features of neighbors around each node and passing the result to the next layer.

The headline theorem is that 1-GNNs cannot be more powerful than the 1-WL test at distinguishing non-isomorphic graphs or subgraphs, whatever their parameters. With the right parameter initialization they match it exactly, so both approaches share the same shortcomings. A concrete failure: both methods give the same color to every node in a graph made of a triangle and a 4-cycle. This motivates k-GNNs, based on the k-dimensional WL algorithm, which are strictly more powerful than GNNs.

Only the 1-GNN layer is captured here, and in the paper's own experiments the hierarchical 1-2-3-GNN significantly outperforms the 1-GNN on all seven datasets. Across twelve graph regression tasks from the QM9 benchmark, the hierarchical model reduces the mean absolute error by 54.45% on average.

Key idea. The paper proves that standard message-passing GNNs have the same expressiveness as the 1-WL isomorphism test in distinguishing non-isomorphic graphs and subgraphs. It then proposes k-GNNs, k-dimensional generalizations that can take higher-order graph structures at multiple scales into account.

  • graphconv
  • graph conv
  • 1-gnn
  • k-gnn
  • k-gnns
  • weisfeiler-leman
  • weisfeiler-lehman
  • wl test
  • 1-wl
  • weisfeiler and leman go neural
  • higher-order graph neural networks
  • graph neural network
  • graph classification
  • message passing
  • pytorch geometric graphconv
  • morris

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{morris2021weisfeilerlemanneuralhigherorder,
      title={Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networks}, 
      author={Christopher Morris and Martin Ritzert and Matthias Fey and William L. Hamilton and Jan Eric Lenssen and Gaurav Rattan and Martin Grohe},
      year={2021},
      eprint={1810.02244},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1810.02244}, 
}