Neural Network for Graphs (NN4G)
Constructive feedforward neural network for graphs, grown one hidden unit at a time.
Graphs and geometry · 3,153 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
- 911
- Operations
- 3,153
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2009, IEEE Transactions on Neural Networks
- Cited by
- 640 (as of 29 October 2026)
- Authors
- Alessio Micheli
- Source
- GitHub: EmanueleCosenza/NN4G
- 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
- m18813
- Graph hash
- 140e397541b60d875e651ad5806d21795f98fcab58f05e89f5bd3b46484c42bc
- Skeleton hash
- 24b8b8e7abaef76d7dd8b1721e743ef043897738501329d642b128aea7f376a2
- Architecture hash
- 4df27790d1894d5ba778f2cdf9842e39be7c062800ec604995bc617997fed4ef
- Diagram SHA-256
- 6e3b8669b5d157f89f97560d8577c965449a8c9335c2c59b7d11b543875ab57c
- 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
NN4G, the Neural Network for Graphs, is a constructive neural network for learning in structured domains. It extends the input domain of supervised neural networks to a general class of labeled graphs, acyclic or cyclic, directed or undirected. Where previous neural networks for structures had recursive dynamics, NN4G is a constructive feedforward architecture whose neurons have no feedback connections. Its units exploit local contextual information of the graph vertices as they traverse the input graph. The paper shows that the model can deal with contextual information that is extended incrementally according to the topology of the graph.
In the PyTorch implementation behind this model, each training iteration trains a new hidden unit and adds it to the network, maximizing the correlation between the unit output and the residual errors in the output layer. In that implementation NN4G can be either a binary classifier or a multiclass classifier.
Key idea. NN4G learns mappings from general graphs with a constructive feedforward architecture whose neurons have no feedback connections, in contrast to the recursive dynamics of previous networks for structures.
- NN4G
- Neural Network for Graphs
- constructive neural network
- graph classification
- contextual constructive approach
- structured domains
- graph neural network
AI-written summary, based on the paper's abstract and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@article{Micheli_2009, title={Neural Network for Graphs: A Contextual Constructive Approach}, volume={20}, ISSN={1941-0093}, url={http://dx.doi.org/10.1109/TNN.2008.2010350}, DOI={10.1109/tnn.2008.2010350}, number={3}, journal={IEEE Transactions on Neural Networks}, publisher={Institute of Electrical and Electronics Engineers (IEEE)}, author={Micheli, A.}, year={2009}, month=Mar, pages={498–511} }