| Algorithms 1 The pseudo-code of GNN-DDI |
| input: Molecular graph of drug x and its original features of atomic nodes Molecular graph of drug y and its original features of atomic nodes output: Probability score of drug pair 1: Initialize parameter sets in GNN-DDI. 2: for k in K: 3: Compute and based on Equations (1) to (3). 4: SAGPooling based on Equation (4) to obtain and in layer k. 5: end for 6: Concatenate k-hops and based on Equation (5) to obtain and . 7: Concatenate and to obtain the latent feature vector of a drug pair 8: Feed feature vector into the predictor to get probability score . |