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 = '10', 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)

dongminjung/PPInfer documentation built on May 15, 2019, 10:41 a.m.