N.b., for each SVM trained, we center the Gram matrix K pertaining only to the training graphs via the double-centering trick . We adopt a similar centering trick for the Gram matrix giving the similarity of the test graphs with the training graphs when we feed it as input to the SVM for predictions on the test split.