A Graph Convolutional Network (GCN) applies convolution-like operations on graphs. It aggregates neighbor information via message passing: each node updates its representation by aggregating its neighbors' representations.
hi(l+1)=σW(l)j∈N(i)∑didj1hj(l)Where N(i) is the neighborhood of node i, d_i is the degree, W is a learnable weight matrix, and sigma is an activation.
Implement:
gcn_layer(features, adj, weight)
Applies one GCN layer: aggregate neighbors, apply weight matrix, return node embeddings.
No results yet
Run your code to check it against the examples, or submit to run every test.