net.kernel {PPInfer}R Documentation

Kernel matrix for a graph

Description

This function gives the regularized Laplacian matrix for a graph.

Usage

net.kernel(g, decay = 0.5)

Arguments

g

graph

decay

decaying constant (default: 0.5)

Value

the regularized Laplacian matrix

Author(s)

Dongmin Jung, Xijin Ge

See Also

laplacian_matrix

Examples

# example 1
## Not run: 
string.db.9606 <- STRINGdb$new(version = '11', species = 9606,
                               score_threshold = 999)
string.db.9606.graph <- string.db.9606$get_graph()
K.9606 <- net.kernel(string.db.9606.graph)

## End(Not run)

# example 2
data(litG)
litG <- igraph.from.graphNEL(litG)
sg <- decompose(litG, min.vertices=50)
sg <- sg[[1]]
K <- net.kernel(sg)

[Package PPInfer version 1.20.4 Index]