Skip to content

feat: Add NNConv support for HeteroGraphConv - #654

Merged
CarloLucibello merged 6 commits into
JuliaGraphs:masterfrom
i-Amogh:AKS/NNConv
Nov 29, 2026
Merged

CarloLucibello merged 6 commits into
JuliaGraphs:masterfrom
i-Amogh:AKS/NNConv

Conversation

@i-Amogh

@i-Amogh i-Amogh commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

This PR adds NNConv support for HeteroGraphConv.
This is related to issue #311.

Amogh and others added 6 commits November 29, 2026 13:33
…t it

`@error` only logs and returns `nothing`; throw an `ArgumentError` instead
when the graph has several edge types or several edge feature arrays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…test values

- `(l::NNConv)(g, x, e = edge_features(g))` throws an `ArgumentError` when
  no edge features are given nor stored in `g`.
- Document the `(xj, xi)` tuple input and the default `e` in the NNConv
  docstring, and how HeteroGraphConv layers get their edge features.
- Check the hetero NNConv output and its Zygote gradients against the
  homogeneous NNConv on graphs whose nodes are the union of src and dst
  nodes (also in GNNLux, for the tuple input), instead of only sizes.
- Revert a stray whitespace change in the GCNConv hetero test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Flux NNConv falls back to `edge_features(::GNNHeteroGraph)`, new in
GNNGraphs 1.7. (The GraphNeuralNetworks 1.2.0-DEV bump and the GNNlib 1.5
compat in both frontends already came with JuliaGraphs#697.)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CarloLucibello
CarloLucibello merged commit 1a77508 into JuliaGraphs:master Nov 29, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants