Description Usage Arguments Value References
Transforms an igraph input graph into a p-step random walk kernel, using parameters a
and p
. This is
similar to netClass::calc.diffusionKernelp
, except that function takes slightly different input. The
equation for the kernel is (a * I - L)^p. Up to scaling terms, this is equivalent to a p-step random walk on
the graph with random restarts, so it is similar to the diffusion kernel, but can be calculated more cheaply (Smola & Kondor).
1 | graph2kernel(gr, a = 2, p = 1)
|
gr |
graph object of class |
a |
parameter of p-step random walk kernel, must be >= 2. |
p |
parameter of p-step random walk kernel, must be > 0. |
Laplacian kernel matrix.
Smola and Kondor, "Kernels and Regularization on Graphs" In Learning Theory and Kernel Machines, Vol. 2777 (2003), pp. 144-158, doi:10.1007/978-3-540-45167-9_12.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.