| Algorithm 1: GraphSAGE embedding generation (i.e., forward propagation) algorithm | |||
| Input | Graph ; input features ; depth K; weight matrices ; non-linearity ; differentiable aggregator functions ; neighbourhood function | ||
| Output | Vector representation for all | ||
| 1 | ; | ||
| 2 | For do | ||
| 3 | For do | ||
| 4 | , | ||
| 5 | , | ||
| 6 | end | ||
| 7 | , | ||
| 8 | end | ||
| 9 | , | ||