CalculateKernelCpp: An C++ implementation of graph kernels

Description Usage Arguments Value Author(s) References Examples

View source: R/RcppExports.R

Description

This function calculates a kernel matrix.

Usage

1
CalculateKernelCpp(graph_info_list, par_r, kernel_type)

Arguments

graph_info_list

a list of igraph graphs

par_r

parameters of kernels

kernel_type

type of kernel

Value

a kernel matrix of the respective kernel

Author(s)

Mahito Sugiyama

References

Sugiyama, M., Borgwardt, K. M.: Halting in Random Walk Kernels, Advances in Neural Information Processing Systems (NIPS 2015), 28, 1630-1638 (2015) https://papers.nips.cc/paper/5688-halting-in-random-walk-kernels.pdf.

Examples

1
2
3
4
data(mutag)
graph.info.list <- vector("list", length(mutag))
for (i in 1:length(mutag)) { graph.info.list[[i]] <- GetGraphInfo(mutag[[i]]) }
K <- CalculateKernelCpp(graph.info.list, 5, 11)

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union

graphkernels documentation built on Dec. 20, 2021, 9:07 a.m.