A GNN layer performs an aggregation of the messages sent by the neighbors of each node. Let's take a look at the following diagram:
Consider the question:
How is the embedding of node A in the third layer, L3, computed?
By looking at the graph structure on the right-hand side of the diagram, you can see that A's neighbors are nodes B and D, hence the embedding hA3 of node A after layer three is a combination of the embedding of nodes B and D in the previous layer, L2. The embedding of B and D in layer two is similarly computed using the embedding of their neighbors in the previous layer, L1. This is summarized by the following equation, giving the embedding of node i in the (k+1)th layer:
hik+1 = σ( Wk Σj hjk + Bk hik)
The second term of the equation is there to make sure the representation of i in the kth layer is also taken into account and σ is an activation function.
The most important thing to remember from this...