DGL-DenseGraphConv
A graph convolutional (GCN) layer that takes the graph as a dense adjacency matrix.
Graphs and geometry · 16 operations Checked
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
- Task
- Graphs and geometry
- Parameters
- 22
- Operations
- 16
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2017
- Cited by
- 16,820 (as of 22 October 2026)
- Authors
- Thomas N. Kipf, Max Welling
- Source
- torch_geometric 2.6.1
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m508
- Graph hash
- 878e7622f0ae011f0c22ee685dfbe02da91f88db1fce81184150938cf311cc1e
- Skeleton hash
- 878e7622f0ae011f0c22ee685dfbe02da91f88db1fce81184150938cf311cc1e
- Architecture hash
- c3c903cb103d277b3a651af35bf50d86536e4ff9a777c37ebc73787166f0ff6b
- Diagram SHA-256
- 94cd5a9a59fc71839bf307d19252e760ffd35b19f9788d8a436543d55f4156ee
- 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
What it is
DenseGraphConv is the graph convolutional layer from the paper Semi-Supervised Classification with Graph Convolutional Networks, in the form recommended for dense graphs. It takes the graph as an adjacency matrix, where a row represents a destination node and a column a source node, together with the node features.
The paper presents a scalable approach to semi-supervised learning on graph-structured data, based on a variant of convolutional neural networks that operates directly on graphs. It motivates the layer as a localized first-order approximation of spectral graph convolutions. The hidden representations it learns encode both local graph structure and the features of nodes. The paper reports that the approach outperformed related methods on citation networks and on a knowledge graph dataset.
By default the layer normalizes the aggregated messages with the constant used in the paper. Another setting divides the aggregated messages by each node's in-degree, which is the same as averaging the received messages. A node with no incoming edges gets an all-zero output, and a common way to avoid this is to add a self-loop for each node.
Key idea. The paper builds a convolutional network layer that operates directly on graphs, motivated by a localized first-order approximation of spectral graph convolutions.
- DenseGraphConv
- dense GCN
- DenseGCNConv
- GCN
- graph convolutional network
- graph convolution
- dense adjacency matrix
- semi-supervised node classification
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{kipf2017semisupervisedclassificationgraphconvolutional,
title={Semi-Supervised Classification with Graph Convolutional Networks},
author={Thomas N. Kipf and Max Welling},
year={2017},
eprint={1609.02907},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1609.02907},
}