To embed the graphs used in the GED comparisons and select prototypes in one call to get a matrix of size N x r where N is the nubmer of graphs in DM and r is the number of prototypes used.
We can embed the graphs used in the GED comparisons and select prototypes in one call to get a matrix of size N x r where N is the nubmer of graphs in DM and r is the number of prototypes used.
Here, we ebmed each graph in `graphlist` with 20 prorotypes using our previously computed distance matrix and the k-centers prototype selector.
Once all graphs are embedded we have the standard machine learning input matrix $X$ with $n$ examples as rows and $r$ features as distances to each prototype.
Any type of classification can now be performed using a label (output) vector for single-class classification or matrix for multi-output classification.
Alternatively, we can classify graphs using k-nearest neighbours and skip the embedding procedure.