net.kernel: Kernel matrix for a graph

Description Usage Arguments Value Author(s) See Also Examples

Description

This function gives the regularized Laplacian matrix for a graph.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# 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)

PPInfer documentation built on Nov. 8, 2020, 7:52 p.m.