Learn R Programming

graphkernels (version 1.6.1)

CalculateGraphletKernel: Graphlet kernel

Description

This function calculates a kernel matrix of the graphlet kernel \(K_{GL}\) between unlabeled graphs.

Usage

CalculateGraphletKernel(G, par)

Arguments

G

a list of igraph graphs

par

the number \(k\) of graphlet nodes (\(k = 3\) or 4 is supported)

Value

a kernel matrix of the graphlet kernel \(K_{GL}\)

References

Shervashidze, N., Vishwanathan, S. V. N., Petri, T., Mehlhorn, K., Borgwardt, K. M.: Efficient Graphlet Kernels for Large Graph Comparison, Proceedings of the 12th International Conference on Artificial Intelligence and Statistics (AISTATS), 5, 488-495 (2009) https://proceedings.mlr.press/v5/shervashidze09a.html.

Examples

Run this code
# NOT RUN {
data(mutag)
K <- CalculateGraphletKernel(mutag, 4)
# }

Run the code above in your browser using DataLab