Skip to main content
. 2026 Jan 8;28(1):72. doi: 10.3390/e28010072
Algorithm 1 Framework of the GEA
Input: Graph with node set V, node embeddings X
Output: Updated node representations Xout
  1: Initialize model parameters: external key-value units Uk, Uv, and number of heads Hext
  2: for each node X do
  3:    Xreshaped=Reshape(X,(n,Hext,d/Hext))
  4:    Q=XreshapedUkT
  5:    A=DNorm(Q)
  6:    Xattn=AUv
  7:    Xout=Reshape(Xattn,(n,d))
  8: end for
  9: return Xout