Learn R Programming

graphkernels (version 1.6.1)

CalculateConnectedGraphletKernel: Connected graphlet kernel

Description

This function calculates a kernel matrix of the graphlet kernel with connected graphlets \(K_{CGL}\) between unlabeled graphs.

Usage

CalculateConnectedGraphletKernel(G, par)

Arguments

G

a list of igraph graphs

par

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

Value

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

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 <- CalculateConnectedGraphletKernel(mutag, 4)
# }

Run the code above in your browser using DataLab