embed_laplacian_matrix(graph, no, weights = NULL, which = c("lm", "la",
"sa"), degmode = c("out", "in", "all", "total"), type = c("default",
"D-A", "DAD", "I-DAD", "OAP"), scaled = TRUE,
options = igraph.arpack.default)
no
-dimensional non-zero singular values are used for the
spectral embedding.weight
edge attribute, then this is
used by default.Possible values: D-A
means $D-A$ where $D$ is the degree
matrix and $A$ is the adjacency matrix;
FALSE
, then $U$ and $V$ are
returned instead of $X$ and $Y$.igraph.arpack.default
.n
times no
matrix, n
is the number of vertices.NULL
for undirected graphs, the second half of the latent
positions for directed graphs, an n
times no
matrix, n
is the number of vertices.arpack
for the details.no
-dimensional Euclidean representation of
the graph based on its Laplacian matrix, $L$. This representation is
computed via the singular value decomposition of the Laplacian matrix.They are essentially doing the same as embed_adjacency_matrix
,
but work on the Laplacian matrix, instead of the adjacency matrix.
embed_adjacency_matrix
,
sample_dot_product
## A small graph
lpvs <- matrix(rnorm(200), 20, 10)
lpvs <- apply(lpvs, 2, function(x) { return (abs(x)/sqrt(sum(x^2))) })
RDP <- sample_dot_product(lpvs)
embed <- embed_laplacian_matrix(RDP, 5)
Run the code above in your browser using DataLab