Skip to main content
. 2024 Sep 29;14(19):2181. doi: 10.3390/diagnostics14192181
Algorithm 2: GNN for Data Prediction
1:Procedure for GNN Prediction
2:      L Number of lAyers in GNN
3:      V Static Node in graph G
4:      E Static Edges in graph G
Initialization of all paramaters
5:      for v V do 
6:           hv0  xv,0,,0
7:      for e E do
8:            ge0  zv,0,,0
Layerwise GNN Process
9:      for l=1 to L do
Edge Processing:Interchanging the node and edge order
10:           for e E do
11:                bel=ρEl gel1,hvl1 :u N(e)
12:                gel=El bel
Node Processing:Interchanging the node and edge order
13:           for v V do
14:                avl=ρVl hvl1,hvl1 :u N(v)
15:                hvl=Vl avl
Readout:
16:                y^=G ρG hvl,gel :v , e  G