CalculateWLKernel {graphkernels}R Documentation

Weisfeiler-Lehman subtree kernel

Description

This function calculates a kernel matrix of the Weisfeiler-Lehman subtree kernel K_{WL}.

Usage

CalculateWLKernel(G, par)

Arguments

G

a list of igraph graphs

par

the number h of iterations

Value

a kernel matrix of the Weisfeiler-Lehman subtree kernel K_{WL}

Author(s)

Mahito Sugiyama

References

Shervashidze, N., Schweitzer, P., van Leeuwen, E. J., Mehlhorn, K., Borgwardt, K. M.: Weisfeiler-Lehman Graph Kernels, Journal of Machine Learning Research, 12, 2359-2561 (2011) https://www.jmlr.org/papers/volume12/shervashidze11a/shervashidze11a.pdf.

Examples

data(mutag)
K <- CalculateWLKernel(mutag, 5)

[Package graphkernels version 1.6.1 Index]